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>
,Matchable<ChangeData>
,ChangeDataSource
public class OrSource extends OrPredicate<ChangeData> implements ChangeDataSource
-
-
Constructor Summary
Constructors Constructor Description OrSource(Collection<? extends Predicate<ChangeData>> that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCardinality()
Returns an estimate of the number of results fromDataSource.read()
.boolean
hasChange()
Returns true if all returned ChangeData.hasChange() will be true.ResultSet<ChangeData>
read()
Returns read from the database and return the results.ResultSet<FieldBundle>
readRaw()
Returns read from the database 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 Detail
-
OrSource
public OrSource(Collection<? extends Predicate<ChangeData>> that)
-
-
Method Detail
-
read
public ResultSet<ChangeData> read()
Description copied from interface:DataSource
Returns read from the database and return the results.- Specified by:
read
in interfaceDataSource<ChangeData>
-
readRaw
public ResultSet<FieldBundle> readRaw()
Description copied from interface:DataSource
Returns read from the database 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:DataSource
Returns an estimate of the number of results fromDataSource.read()
.- Specified by:
getCardinality
in interfaceDataSource<ChangeData>
-
-