T
- the type of document to decode query results topublic class QueryResult<T> extends Object
Constructor | Description |
---|---|
QueryResultβ(MongoNamespace namespace,
List<T> results,
long cursorId,
ServerAddress serverAddress) |
Construct an instance.
|
Modifier and Type | Method | Description |
---|---|---|
ServerAddress |
getAddressβ() |
Gets the server address.
|
ServerCursor |
getCursorβ() |
Gets the cursor.
|
MongoNamespace |
getNamespaceβ() |
Gets the namespace.
|
List<T> |
getResultsβ() |
Gets the results.
|
public QueryResultβ(MongoNamespace namespace, List<T> results, long cursorId, ServerAddress serverAddress)
namespace
- the namespaceresults
- the query resultscursorId
- the cursor idserverAddress
- the server addresspublic MongoNamespace getNamespaceβ()
public ServerCursor getCursorβ()
public ServerAddress getAddressβ()