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 SummaryConstructors
- 
Method SummaryModifier 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- 
QueryResultpublic QueryResult()
 
- 
- 
Method Details- 
createpublic static <T> QueryResult<T> create(String query, Predicate<T> predicate, int limit, List<T> entities) 
- 
queryReturns the original query string, or null if the query was created programmatically.
- 
predicateReturns the predicate after all rewriting and other modification by the query subsystem.
- 
entitiesReturns the query results.
- 
morepublic abstract boolean more()Returns whether the query could be retried with a higher start/limit to produce more results. Never true ifentities()is empty.
 
-