Package com.google.gerrit.index.query
Class AndSource<T>
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.AndPredicate<T>
com.google.gerrit.index.query.AndSource<T>
- All Implemented Interfaces:
DataSource<T>,HasCardinality,Matchable<T>,Comparator<Predicate<T>>
- Direct Known Subclasses:
AndChangeSource
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAndSource(Collection<? extends Predicate<T>> that, int start, IndexConfig indexConfig) AndSource(Collection<? extends Predicate<T>> that, IndexConfig indexConfig) -
Method Summary
Modifier and TypeMethodDescriptionintReturns an estimate of the number of results a source can return.booleanDoes this predicate match this object?read()Returns read from the index and return the results.readRaw()Returns read from the index and return the raw results.transformBuffer(List<T> buffer) Methods inherited from class com.google.gerrit.index.query.AndPredicate
compare, 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, thenComparingLong
-
Field Details
-
filteredSource
-
-
Constructor Details
-
AndSource
-
AndSource
-
-
Method Details
-
read
Description copied from interface:DataSourceReturns read from the index and return the results.- Specified by:
readin interfaceDataSource<T>
-
readRaw
Description copied from interface:DataSourceReturns read from the index and return the raw results.- Specified by:
readRawin interfaceDataSource<T>
-
match
Description copied from interface:MatchableDoes this predicate match this object? -
transformBuffer
-
getCardinality
public int getCardinality()Description copied from interface:HasCardinalityReturns an estimate of the number of results a source can return.- Specified by:
getCardinalityin interfaceHasCardinality
-