Package com.google.gerrit.index.query
Class IndexedQuery<I,T> 
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.IndexedQuery<I,T> 
- Type Parameters:
- I- The type of the IDs by which the entities are stored in the index.
- T- The type of the entities that are stored in the index.
- All Implemented Interfaces:
- DataSource<T>,- HasCardinality,- Paginated<T>
- Direct Known Subclasses:
- IndexedAccountQuery,- IndexedChangeQuery,- IndexedGroupQuery
Wrapper combining an 
IndexPredicate together with a DataSource that returns
 matching results from the index.
 Appropriate to return as the rootmost predicate that can be processed using the secondary
 index; such predicates must also implement DataSource to be chosen by the query
 processor.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gerrit.index.query.PredicatePredicate.Any<T>
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncopy(Collection<? extends Predicate<T>> children) Create a copy of this predicate, with new children.booleanintReturns an estimate of the number of results a source can return.getChild(int i) Same asgetChildren().get(i)intSame asgetChildren().size()Get the children of this predicate, if any.inthashCode()read()Returns read from the index and return the results.readRaw()Returns read from the index and return the raw results.restart(int start) restart(int start, int pageSize) toString()Methods inherited from class com.google.gerrit.index.query.Predicateand, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueries
- 
Field Details- 
index
- 
source
 
- 
- 
Constructor Details- 
IndexedQuerypublic IndexedQuery(Index<I, T> index, Predicate<T> pred, QueryOptions opts) throws QueryParseException- Throws:
- QueryParseException
 
 
- 
- 
Method Details- 
getChildCountpublic int getChildCount()Description copied from class:PredicateSame asgetChildren().size()- Overrides:
- getChildCountin class- Predicate<T>
 
- 
getChildDescription copied from class:PredicateSame asgetChildren().get(i)
- 
getChildrenDescription copied from class:PredicateGet the children of this predicate, if any.- Overrides:
- getChildrenin class- Predicate<T>
 
- 
getOptions- Specified by:
- getOptionsin interface- Paginated<I>
 
- 
getCardinalitypublic int getCardinality()Description copied from interface:HasCardinalityReturns an estimate of the number of results a source can return.- Specified by:
- getCardinalityin interface- HasCardinality
 
- 
readDescription copied from interface:DataSourceReturns read from the index and return the results.- Specified by:
- readin interface- DataSource<I>
 
- 
readRawDescription copied from interface:DataSourceReturns read from the index and return the raw results.- Specified by:
- readRawin interface- DataSource<I>
 
- 
restart
- 
restart
- 
restart
- 
copyDescription copied from class:PredicateCreate a copy of this predicate, with new children.
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-