Class ChangeIndexCardinalPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<I>
-
- com.google.gerrit.index.query.IndexPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.ChangeIndexPredicate
-
- com.google.gerrit.server.query.change.ChangeIndexCardinalPredicate
-
- All Implemented Interfaces:
HasCardinality
,Matchable<ChangeData>
public class ChangeIndexCardinalPredicate extends ChangeIndexPredicate implements HasCardinality
-
-
Field Summary
Fields Modifier and Type Field Description protected int
cardinality
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChangeIndexCardinalPredicate(FieldDef<ChangeData,?> def, String value, int cardinality)
protected
ChangeIndexCardinalPredicate(FieldDef<ChangeData,?> def, String name, String value, int cardinality)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCardinality()
Returns an estimate of the number of results a source can return.-
Methods inherited from class com.google.gerrit.server.query.change.ChangeIndexPredicate
none
-
Methods inherited from class com.google.gerrit.index.query.IndexPredicate
getCost, getField, getType, match
-
Methods inherited from class com.google.gerrit.index.query.OperatorPredicate
copy, equals, getOperator, getValue, hashCode, toString
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueries
-
-
-
-
Constructor Detail
-
ChangeIndexCardinalPredicate
protected ChangeIndexCardinalPredicate(FieldDef<ChangeData,?> def, String value, int cardinality)
-
ChangeIndexCardinalPredicate
protected ChangeIndexCardinalPredicate(FieldDef<ChangeData,?> def, String name, String value, int cardinality)
-
-
Method Detail
-
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
-
-