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 public class QueryResult<T> extends Object
Deprecated.A batch of query results.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description QueryResult(MongoNamespace namespace, List<T> results, long cursorId, ServerAddress serverAddress)
Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServerAddress
getAddress()
Deprecated.Gets the server address.ServerCursor
getCursor()
Deprecated.Gets the cursor.MongoNamespace
getNamespace()
Deprecated.Gets the namespace.List<T>
getResults()
Deprecated.Gets the results.
-
-
-
Constructor Detail
-
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 Detail
-
getNamespace
public MongoNamespace getNamespace()
Deprecated.Gets the namespace.- Returns:
- the namespace
-
getCursor
public ServerCursor getCursor()
Deprecated.Gets the cursor.- Returns:
- the cursor, which may be null if it's been exhausted
-
getAddress
public ServerAddress getAddress()
Deprecated.Gets the server address.- Returns:
- the server address
-
-