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>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
FieldsFields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ChangeIndexCardinalPredicate
(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String value, int cardinality) protected
ChangeIndexCardinalPredicate
(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String name, String value, int cardinality) -
Method Summary
Modifier and TypeMethodDescriptionint
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
-
Field Details
-
cardinality
protected final int cardinality
-
-
Constructor Details
-
ChangeIndexCardinalPredicate
protected ChangeIndexCardinalPredicate(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String value, int cardinality) -
ChangeIndexCardinalPredicate
protected ChangeIndexCardinalPredicate(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String name, String value, int cardinality)
-
-
Method Details
-
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
-