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>>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
Fields inherited from class com.google.gerrit.index.query.AndSource
filteredSource
-
Constructor Summary
ConstructorsConstructorDescriptionAndChangeSource
(Collection<Predicate<ChangeData>> that, int start, IndexConfig indexConfig) AndChangeSource
(Collection<Predicate<ChangeData>> that, IndexConfig indexConfig) -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(Predicate<ChangeData> a, Predicate<ChangeData> b) boolean
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 Details
-
AndChangeSource
-
AndChangeSource
-
-
Method Details
-
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
- Overrides:
transformBuffer
in classAndSource<ChangeData>
-
compare
- Specified by:
compare
in interfaceComparator<Predicate<ChangeData>>
- Overrides:
compare
in classAndPredicate<ChangeData>
-