Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Results (Google App Engine API for Java)

Stay organized with collections Save and categorize content based on your preferences.

Class Results<T>

  • java.lang.Object
  • Type Parameters:
    T - The type of search result.
    All Implemented Interfaces:, java.lang.Iterable<T>

    public class Results<T>
    extends java.lang.Object
    implements java.lang.Iterable<T>,
    Represents a result of executing a search. The Results include an OperationResult, a collection of results, and a number of found and returned results.
    See Also:
    Serialized Form
    • Method Detail

      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • getOperationResult

        public OperationResult getOperationResult()
        the result of the search operation
      • getNumberFound

        public long getNumberFound()
        The number of results found by the search. If the value is less than or equal to the corresponding QueryOptions.getNumberFoundAccuracy(), then it is accurate, otherwise it is an approximation
        the number of results found
      • getNumberReturned

        public int getNumberReturned()
        the number of results returned
      • getResults

        public java.util.Collection<T> getResults()
        an unmodifiable collection of search results
      • getFacets

        public java.util.Collection<FacetResult> getFacets()
        an unmodifiable collection of aggregated facets for this search results
      • getCursor

        public Cursor getCursor()
        A cursor to be used to continue the search after all the results in this search response. For this field to be populated, use QueryOptions.Builder.setCursor( with a value of Cursor.newBuilder().build(), otherwise getCursor() will return null.
        cursor to be used to get the next set of results after the end of these results, or null if there are no more results to be expected or if no cursor was configured in the QueryOptions.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object