T
- the type of document to decode query results topublic class QueryResult<T> extends Object
Constructor and Description |
---|
QueryResult(MongoNamespace namespace,
List<T> results,
long cursorId,
ServerAddress serverAddress)
Construct an instance.
|
Modifier and Type | Method and 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()