Package com.google.gerrit.index.query
Class QueryResult<T>
- java.lang.Object
- 
- com.google.gerrit.index.query.QueryResult<T>
 
- 
 public abstract class QueryResult<T> extends Object Results of a query over entities.
- 
- 
Constructor SummaryConstructors Constructor Description QueryResult()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> QueryResult<T>create(String query, Predicate<T> predicate, int limit, List<T> entities)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.abstract Predicate<T>predicate()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.
 
- 
- 
- 
Method Detail- 
createpublic static <T> QueryResult<T> create(String query, Predicate<T> predicate, int limit, List<T> entities) 
 - 
querypublic abstract String query() Returns the original query string, or null if the query was created programmatically.
 - 
predicatepublic abstract Predicate<T> predicate() Returns the predicate after all rewriting and other modification by the query subsystem.
 - 
entitiespublic abstract com.google.common.collect.ImmutableList<T> entities() Returns 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.
 
- 
 
-