public class DBCursor extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the cursor.
|
BSONObject |
getCurrent()
Get current document.
|
BSONObject |
getNext()
Get next document.
|
byte[] |
getNextRaw()
Get raw data of next record.
|
boolean |
hasNext()
Judge whether the next document exists or not.
|
public void close()
throws BaseException
close in interface Closeableclose in interface AutoCloseableBaseException - If error happens.public BSONObject getCurrent() throws BaseException
SDBError.SDB_DMS_CONTEXT_IS_CLOSEBaseException - If error happens.public BSONObject getNext() throws BaseException
SDBError.SDB_DMS_CONTEXT_IS_CLOSEBaseException - If error happens.public byte[] getNextRaw()
throws BaseException
SDBError.SDB_DMS_CONTEXT_IS_CLOSEBaseException - If error happens.public boolean hasNext()
throws BaseException
BaseException - If error happens.Copyright © 2023. All rights reserved.