Package de.caluga.morphium.driver
Class MorphiumCursor
java.lang.Object
de.caluga.morphium.driver.MorphiumCursor
- Direct Known Subclasses:
MorphiumCursorAdapter,SingleBatchCursor,SingleElementCursor,SingleMongoConnectionCursor
public abstract class MorphiumCursor
extends Object
implements Iterable<Map<String,Object>>, Iterator<Map<String,Object>>
Morphiums representation of the mongodb getMongoCursor()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidahead(int skip) abstract intabstract voidback(int jump) abstract voidclose()getAll()getBatch()intabstract MongoConnectionabstract intlonggetDb()abstract booleanhasNext()next()voidvoidsetBatchSize(int batchSize) voidsetCollection(String collection) voidsetCursorId(long cursorId) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
MorphiumCursor
public MorphiumCursor()
-
-
Method Details
-
getServer
-
setServer
-
getDb
-
setDb
-
getCollection
-
setCollection
-
getBatchSize
public int getBatchSize() -
setBatchSize
public void setBatchSize(int batchSize) -
getCursorId
public long getCursorId() -
setCursorId
public void setCursorId(long cursorId) -
getBatch
-
setBatch
-
hasNext
public abstract boolean hasNext() -
next
-
close
public abstract void close() -
available
public abstract int available() -
getAll
- Throws:
MorphiumDriverException
-
ahead
- Throws:
MorphiumDriverException
-
back
- Throws:
MorphiumDriverException
-
getCursor
public abstract int getCursor() -
getConnection
-