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()
Cursor
getCursorId
in interface Cursor
public ServerAddress getServerAddress()
Cursor
getServerAddress
in interface Cursor
public void close()
Cursor
public boolean hasNext()
hasNext
in interface java.util.Iterator<DBObject>
public void remove()
remove
in interface java.util.Iterator<DBObject>