Package com.google.gerrit.index.query
Class OrCardinalPredicate<T>
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.OrPredicate<T>
com.google.gerrit.index.query.OrCardinalPredicate<T>
- All Implemented Interfaces:
HasCardinality
,Matchable<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy
(Collection<? extends Predicate<T>> children) Create a copy of this predicate, with new children.int
Returns an estimate of the number of results a source can return.Methods inherited from class com.google.gerrit.index.query.OrPredicate
equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, match, 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 com.google.gerrit.index.query.Matchable
matchResult
-
Constructor Details
-
OrCardinalPredicate
-
-
Method Details
-
copy
Description copied from class:Predicate
Create a copy of this predicate, with new children.- Overrides:
copy
in classOrPredicate<T>
-
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
-