Package de.caluga.morphium.driver.wire
Class SingleMongoConnectionCursor
java.lang.Object
de.caluga.morphium.driver.MorphiumCursor
de.caluga.morphium.driver.wire.SingleMongoConnectionCursor
User: Stephan Bösebeck
Date: 23.03.16
Time: 16:13
Cursor implementation for the singleconnect drivers
-
Constructor Summary
ConstructorsConstructorDescriptionSingleMongoConnectionCursor(MongoConnection drv, int batchSize, boolean multithreaddedAccess, OpMsg reply) -
Method Summary
Methods inherited from class de.caluga.morphium.driver.MorphiumCursor
getBatch, getBatchSize, getCollection, getCursorId, getDb, getServer, setBatch, setBatchSize, setCollection, setCursorId, setDb, setServerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
SingleMongoConnectionCursor
public SingleMongoConnectionCursor(MongoConnection drv, int batchSize, boolean multithreaddedAccess, OpMsg reply) throws MorphiumDriverException - Throws:
MorphiumDriverException
-
-
Method Details
-
iterator
-
getCursor
public int getCursor()- Specified by:
getCursorin classMorphiumCursor
-
hasNext
public boolean hasNext() -
next
-
close
public void close()- Specified by:
closein classMorphiumCursor
-
available
public int available()- Specified by:
availablein classMorphiumCursor
-
getConnection
- Specified by:
getConnectionin classMorphiumCursor
-
getAll
- Specified by:
getAllin classMorphiumCursor- Throws:
MorphiumDriverException
-
ahead
- Specified by:
aheadin classMorphiumCursor- Throws:
MorphiumDriverException
-
back
- Specified by:
backin classMorphiumCursor- Throws:
MorphiumDriverException
-