T - the type of document to decode query results topublic class QueryResult<T> extends java.lang.Object implements CountedBytes
| 构造器和说明 |
|---|
QueryResult(MongoNamespace namespace,
java.util.List<T> results,
long cursorId,
ServerAddress serverAddress)
Construct an instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ServerAddress |
getAddress()
Gets the server address.
|
long |
getBytes() |
ServerCursor |
getCursor()
Gets the cursor.
|
MongoNamespace |
getNamespace()
Gets the namespace.
|
java.util.List<T> |
getResults()
Gets the results.
|
void |
setBytes(long bytes) |
public QueryResult(MongoNamespace namespace, java.util.List<T> results, long cursorId, ServerAddress serverAddress)
namespace - the namespaceresults - the query resultscursorId - the cursor idserverAddress - the server addresspublic long getBytes()
getBytes 在接口中 CountedBytespublic void setBytes(long bytes)
setBytes 在接口中 CountedBytespublic MongoNamespace getNamespace()
public ServerCursor getCursor()
public java.util.List<T> getResults()
public ServerAddress getAddress()