Class MongoDBResult<K,T extends ai.platon.gora.persistency.impl.PersistentBase>

java.lang.Object
ai.platon.gora.query.impl.ResultBase<K,T>
ai.platon.gora.mongodb.query.MongoDBResult<K,T>
All Implemented Interfaces:
ai.platon.gora.query.Result<K,T>

public class MongoDBResult<K,T extends ai.platon.gora.persistency.impl.PersistentBase> extends ai.platon.gora.query.impl.ResultBase<K,T>
MongoDB specific implementation of the Result interface.
Author:
Fabien Poulard fpoulard@dictanova.com, Damien Raude-Morvan draudemorvan@dictanova.com
  • Field Summary

    Fields inherited from class ai.platon.gora.query.impl.ResultBase

    dataStore, key, limit, offset, persistent, query
  • Constructor Summary

    Constructors
    Constructor
    Description
    MongoDBResult(ai.platon.gora.store.DataStore<K,T> dataStore, ai.platon.gora.query.Query<K,T> query, com.mongodb.client.MongoCursor<org.bson.Document> cursor, long size)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    float
     
    protected boolean
     
    int
     

    Methods inherited from class ai.platon.gora.query.impl.ResultBase

    clear, filter, get, getDataStore, getKey, getKeyClass, getOffset, getOrCreatePersistent, getPersistentClass, getQuery, isLimitReached, next

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MongoDBResult

      public MongoDBResult(ai.platon.gora.store.DataStore<K,T> dataStore, ai.platon.gora.query.Query<K,T> query, com.mongodb.client.MongoCursor<org.bson.Document> cursor, long size)
  • Method Details

    • getProgress

      public float getProgress()
    • close

      public void close()
      Specified by:
      close in interface ai.platon.gora.query.Result<K,T extends ai.platon.gora.persistency.impl.PersistentBase>
      Overrides:
      close in class ai.platon.gora.query.impl.ResultBase<K,T extends ai.platon.gora.persistency.impl.PersistentBase>
    • nextInner

      protected boolean nextInner() throws IOException
      Specified by:
      nextInner in class ai.platon.gora.query.impl.ResultBase<K,T extends ai.platon.gora.persistency.impl.PersistentBase>
      Throws:
      IOException
    • size

      public int size()