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 Details

    • QueryResult

      public QueryResult(MongoNamespace namespace, List<T> results, long cursorId, ServerAddress serverAddress)
      Deprecated.
      Construct an instance.
      Parameters:
      namespace - the namespace
      results - the query results
      cursorId - the cursor id
      serverAddress - the server address
  • Method Details

    • 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
    • getResults

      public List<T> getResults()
      Deprecated.
      Gets the results.
      Returns:
      the results
    • getAddress

      public ServerAddress getAddress()
      Deprecated.
      Gets the server address.
      Returns:
      the server address