public class DBCursor extends Object implements Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 Closeableclose 在接口中 AutoCloseableBaseException - If error happens.public BSONObject getCurrent() throws BaseException
BaseException - If error happens.public BSONObject getNext() throws BaseException
BaseException - If error happens.public byte[] getNextRaw()
throws BaseException
BaseException - If error happens.public boolean hasNext()
throws BaseException
BaseException - If error happens.Copyright © 2021. All rights reserved.