T
- the type of document to decode query results topublic class QueryResult<T>
extends java.lang.Object
Constructor and Description |
---|
QueryResult(MongoNamespace namespace,
java.util.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.
|
java.util.List<T> |
getResults()
Gets the results.
|
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 MongoNamespace getNamespace()
public ServerCursor getCursor()
public java.util.List<T> getResults()
public ServerAddress getAddress()