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 TypeMethodDescriptionint
Returns an estimate of the number of results a source can return.boolean
Does 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, 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
-
Field Details
-
filteredSource
-
-
Constructor Details
-
AndSource
-
AndSource
-
-
Method Details
-
read
Description copied from interface:DataSource
Returns read from the index and return the results.- Specified by:
read
in interfaceDataSource<T>
-
readRaw
Description copied from interface:DataSource
Returns read from the index and return the raw results.- Specified by:
readRaw
in interfaceDataSource<T>
-
match
Description copied from interface:Matchable
Does this predicate match this object? -
transformBuffer
-
getCardinality
public int getCardinality()Description copied from interface:HasCardinality
Returns an estimate of the number of results a source can return.- Specified by:
getCardinality
in interfaceHasCardinality
-