| Modifier and Type | Field and Description |
|---|---|
private MongoCursor<DBObject> |
cursor |
| Constructor and Description |
|---|
MongoCursorAdapter(MongoCursor<DBObject> cursor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Terminates this cursor on the server.
|
long |
getCursorId()
Gets the server's identifier for this Cursor.
|
ServerAddress |
getServerAddress()
Gets the address of the server that data is pulled from.
|
boolean |
hasNext() |
DBObject |
next() |
void |
remove() |
private final MongoCursor<DBObject> cursor
public MongoCursorAdapter(MongoCursor<DBObject> cursor)
public long getCursorId()
CursorgetCursorId in interface Cursorpublic ServerAddress getServerAddress()
CursorgetServerAddress in interface Cursorpublic void close()
Cursorpublic boolean hasNext()
hasNext in interface java.util.Iterator<DBObject>public void remove()
remove in interface java.util.Iterator<DBObject>