Class 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 Detail

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