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>
public class OrCardinalPredicate<T> extends OrPredicate<T> implements HasCardinality
-
-
Constructor Summary
Constructors Constructor Description OrCardinalPredicate(Collection<? extends Predicate<T>> that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<T>
copy(Collection<? extends Predicate<T>> children)
Create a copy of this predicate, with new children.int
getCardinality()
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
-
-
-
-
Constructor Detail
-
OrCardinalPredicate
public OrCardinalPredicate(Collection<? extends Predicate<T>> that)
-
-
Method Detail
-
copy
public Predicate<T> copy(Collection<? extends Predicate<T>> children)
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
-
-