Package com.google.gerrit.index.query
Class QueryResult<T>
java.lang.Object
com.google.gerrit.index.query.QueryResult<T>
Results of a query over entities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> QueryResult<T> abstract com.google.common.collect.ImmutableList<T> entities()Returns the query results.abstract booleanmore()Returns whether the query could be retried with a higher start/limit to produce more results.Returns the predicate after all rewriting and other modification by the query subsystem.abstract Stringquery()Returns the original query string, or null if the query was created programmatically.
-
Constructor Details
-
QueryResult
public QueryResult()
-
-
Method Details
-
create
public static <T> QueryResult<T> create(String query, Predicate<T> predicate, int limit, List<T> entities) -
query
Returns the original query string, or null if the query was created programmatically. -
predicate
Returns the predicate after all rewriting and other modification by the query subsystem. -
entities
Returns the query results. -
more
public abstract boolean more()Returns whether the query could be retried with a higher start/limit to produce more results. Never true ifentities()is empty.
-