Class OrSource
java.lang.Object
com.google.gerrit.index.query.Predicate<ChangeData>
com.google.gerrit.index.query.OrPredicate<ChangeData>
com.google.gerrit.server.query.change.OrSource
- All Implemented Interfaces:
DataSource<ChangeData>,HasCardinality,Matchable<ChangeData>,ChangeDataSource
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns an estimate of the number of results a source can return.booleanReturns true if all returned ChangeData.hasChange() will be true.read()Returns read from the index and return the results.readRaw()Returns read from the index and return the raw results.Methods inherited from class com.google.gerrit.index.query.OrPredicate
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, match, toStringMethods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueries
-
Constructor Details
-
OrSource
-
-
Method Details
-
read
Description copied from interface:DataSourceReturns read from the index and return the results.- Specified by:
readin interfaceDataSource<ChangeData>
-
readRaw
Description copied from interface:DataSourceReturns read from the index and return the raw results.- Specified by:
readRawin interfaceDataSource<ChangeData>
-
hasChange
public boolean hasChange()Description copied from interface:ChangeDataSourceReturns true if all returned ChangeData.hasChange() will be true.- Specified by:
hasChangein interfaceChangeDataSource
-
getCardinality
public int getCardinality()Description copied from interface:HasCardinalityReturns an estimate of the number of results a source can return.- Specified by:
getCardinalityin interfaceHasCardinality
-