Class AndChangeSource
java.lang.Object
com.google.gerrit.index.query.Predicate<ChangeData>
com.google.gerrit.index.query.AndPredicate<ChangeData>
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 TypeMethodDescriptionintcompare(Predicate<ChangeData> a, Predicate<ChangeData> b) booleanReturns 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, readRawMethods inherited from class com.google.gerrit.index.query.AndPredicate
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, toStringMethods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueriesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface com.google.gerrit.index.query.DataSource
read, readRawMethods inherited from interface com.google.gerrit.index.query.HasCardinality
getCardinality
-
Constructor Details
-
AndChangeSource
-
AndChangeSource
-
-
Method Details
-
hasChange
public boolean hasChange()Description copied from interface:ChangeDataSourceReturns true if all returned ChangeData.hasChange() will be true.- Specified by:
hasChangein interfaceChangeDataSource
-
transformBuffer
- Overrides:
transformBufferin classAndSource<ChangeData>
-
compare
- Specified by:
comparein interfaceComparator<Predicate<ChangeData>>- Overrides:
comparein classAndPredicate<ChangeData>
-