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 Constructor Description MorphiumCursor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidahead(int skip)abstract intavailable()abstract voidback(int jump)abstract voidclose()abstract List<Map<String,Object>>getAll()List<Map<String,Object>>getBatch()intgetBatchSize()StringgetCollection()abstract MongoConnectiongetConnection()abstract intgetCursor()longgetCursorId()StringgetDb()StringgetServer()abstract booleanhasNext()abstract Map<String,Object>next()voidsetBatch(List<Map<String,Object>> batch)voidsetBatchSize(int batchSize)voidsetCollection(String collection)voidsetCursorId(long cursorId)voidsetDb(String db)MorphiumCursorsetServer(String server)-
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, iterator, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
getServer
public String getServer()
-
setServer
public MorphiumCursor setServer(String server)
-
getDb
public String getDb()
-
setDb
public void setDb(String db)
-
getCollection
public String getCollection()
-
setCollection
public void setCollection(String collection)
-
getBatchSize
public int getBatchSize()
-
setBatchSize
public void setBatchSize(int batchSize)
-
getCursorId
public long getCursorId()
-
setCursorId
public void setCursorId(long cursorId)
-
hasNext
public abstract boolean hasNext()
-
close
public abstract void close()
-
available
public abstract int available()
-
getAll
public abstract List<Map<String,Object>> getAll() throws MorphiumDriverException
- Throws:
MorphiumDriverException
-
ahead
public abstract void ahead(int skip) throws MorphiumDriverException- Throws:
MorphiumDriverException
-
back
public abstract void back(int jump) throws MorphiumDriverException- Throws:
MorphiumDriverException
-
getCursor
public abstract int getCursor()
-
getConnection
public abstract MongoConnection getConnection()
-
-