Package de.caluga.morphium.driver.wire
Class SingleMongoConnectionCursor
- java.lang.Object
-
- de.caluga.morphium.driver.MorphiumCursor
-
- de.caluga.morphium.driver.wire.SingleMongoConnectionCursor
-
-
Constructor Summary
Constructors Constructor Description SingleMongoConnectionCursor(MongoConnection drv, int batchSize, boolean multithreaddedAccess, OpMsg reply)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidahead(int jump)intavailable()voidback(int jump)voidclose()List<Map<String,Object>>getAll()MongoConnectiongetConnection()intgetCursor()booleanhasNext()Iterator<Map<String,Object>>iterator()Map<String,Object>next()-
Methods inherited from class de.caluga.morphium.driver.MorphiumCursor
getBatch, getBatchSize, getCollection, getCursorId, getDb, getServer, setBatch, setBatchSize, setCollection, setCursorId, setDb, setServer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
SingleMongoConnectionCursor
public SingleMongoConnectionCursor(MongoConnection drv, int batchSize, boolean multithreaddedAccess, OpMsg reply) throws MorphiumDriverException
- Throws:
MorphiumDriverException
-
-
Method Detail
-
getCursor
public int getCursor()
- Specified by:
getCursorin classMorphiumCursor
-
hasNext
public boolean hasNext()
-
close
public void close()
- Specified by:
closein classMorphiumCursor
-
available
public int available()
- Specified by:
availablein classMorphiumCursor
-
getConnection
public MongoConnection getConnection()
- Specified by:
getConnectionin classMorphiumCursor
-
getAll
public List<Map<String,Object>> getAll() throws MorphiumDriverException
- Specified by:
getAllin classMorphiumCursor- Throws:
MorphiumDriverException
-
ahead
public void ahead(int jump) throws MorphiumDriverException- Specified by:
aheadin classMorphiumCursor- Throws:
MorphiumDriverException
-
back
public void back(int jump) throws MorphiumDriverException- Specified by:
backin classMorphiumCursor- Throws:
MorphiumDriverException
-
-