Class AndChangeSource
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.AndPredicate<T>
-
- com.google.gerrit.index.query.AndSource<ChangeData>
-
- com.google.gerrit.server.query.change.AndChangeSource
-
- All Implemented Interfaces:
DataSource<ChangeData>
,HasCardinality
,Matchable<ChangeData>
,ChangeDataSource
,Comparator<Predicate<ChangeData>>
public class AndChangeSource extends AndSource<ChangeData> implements ChangeDataSource
-
-
Constructor Summary
Constructors Constructor Description AndChangeSource(Collection<Predicate<ChangeData>> that, int start, IndexConfig indexConfig)
AndChangeSource(Collection<Predicate<ChangeData>> that, IndexConfig indexConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Predicate<ChangeData> a, Predicate<ChangeData> b)
boolean
hasChange()
Returns true if all returned ChangeData.hasChange() will be true.protected List<ChangeData>
transformBuffer(List<ChangeData> buffer)
-
Methods inherited from class com.google.gerrit.index.query.AndSource
getCardinality, match, read, readRaw
-
Methods inherited from class com.google.gerrit.index.query.AndPredicate
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, toString
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueries
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface com.google.gerrit.index.query.DataSource
read, readRaw
-
Methods inherited from interface com.google.gerrit.index.query.HasCardinality
getCardinality
-
-
-
-
Constructor Detail
-
AndChangeSource
public AndChangeSource(Collection<Predicate<ChangeData>> that, IndexConfig indexConfig)
-
AndChangeSource
public AndChangeSource(Collection<Predicate<ChangeData>> that, int start, IndexConfig indexConfig)
-
-
Method Detail
-
hasChange
public boolean hasChange()
Description copied from interface:ChangeDataSource
Returns true if all returned ChangeData.hasChange() will be true.- Specified by:
hasChange
in interfaceChangeDataSource
-
transformBuffer
protected List<ChangeData> transformBuffer(List<ChangeData> buffer)
- Overrides:
transformBuffer
in classAndSource<ChangeData>
-
compare
public int compare(Predicate<ChangeData> a, Predicate<ChangeData> b)
- Specified by:
compare
in interfaceComparator<Predicate<ChangeData>>
- Overrides:
compare
in classAndPredicate<ChangeData>
-
-