Package com.mongodb.connection
Class QueryResult<T>
java.lang.Object
com.mongodb.connection.QueryResult<T>
- Type Parameters:
T
- the type of document to decode query results to
Deprecated.
A batch of query results.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionQueryResult
(MongoNamespace namespace, List<T> results, long cursorId, ServerAddress serverAddress) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the server address.Deprecated.Gets the cursor.Deprecated.Gets the namespace.Deprecated.Gets the results.
-
Constructor Details
-
QueryResult
public QueryResult(MongoNamespace namespace, List<T> results, long cursorId, ServerAddress serverAddress) Deprecated.Construct an instance.- Parameters:
namespace
- the namespaceresults
- the query resultscursorId
- the cursor idserverAddress
- the server address
-
-
Method Details
-
getNamespace
Deprecated.Gets the namespace.- Returns:
- the namespace
-
getCursor
Deprecated.Gets the cursor.- Returns:
- the cursor, which may be null if it's been exhausted
-
getResults
Deprecated.Gets the results.- Returns:
- the results
-
getAddress
Deprecated.Gets the server address.- Returns:
- the server address
-