public class MongoDBResult<K,T extends PersistentBase> extends ResultBase<K,T>
Result
interface.dataStore, key, limit, offset, persistent, query| Constructor and Description |
|---|
MongoDBResult(DataStore<K,T> dataStore,
Query<K,T> query) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
float |
getProgress()
Returns how far along the result has iterated, a value between 0 and 1.
|
protected boolean |
nextInner()
ResultBase.next() calls this function to read the
actual results. |
void |
setCursor(com.mongodb.DBCursor cursor)
Save the reference to the cursor that holds the actual results.
|
clear, filter, get, getDataStore, getKey, getKeyClass, getOffset, getOrCreatePersistent, getPersistentClass, getQuery, isLimitReached, nextpublic float getProgress()
throws IOException
ResultIOExceptionpublic void close()
throws IOException
close in interface Result<K,T extends PersistentBase>close in class ResultBase<K,T extends PersistentBase>IOExceptionprotected boolean nextInner()
throws IOException
ResultBaseResultBase.next() calls this function to read the
actual results.nextInner in class ResultBase<K,T extends PersistentBase>IOExceptionpublic void setCursor(com.mongodb.DBCursor cursor)
cursor - DBCursor obtained from a query execution and that holds
the actual resultsCopyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.