Class OrSource
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
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 TypeMethodDescriptionint
Returns an estimate of the number of results a source can return.boolean
Returns 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, toString
Methods 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:DataSource
Returns read from the index and return the results.- Specified by:
read
in interfaceDataSource<ChangeData>
-
readRaw
Description copied from interface:DataSource
Returns read from the index and return the raw results.- Specified by:
readRaw
in interfaceDataSource<ChangeData>
-
hasChange
public boolean hasChange()Description copied from interface:ChangeDataSource
Returns true if all returned ChangeData.hasChange() will be true.- Specified by:
hasChange
in interfaceChangeDataSource
-
getCardinality
public int getCardinality()Description copied from interface:HasCardinality
Returns an estimate of the number of results a source can return.- Specified by:
getCardinality
in interfaceHasCardinality
-