Class ChangeIndexCardinalPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<ChangeData>
com.google.gerrit.index.query.OperatorPredicate<ChangeData>
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
ConstructorsModifierConstructorDescriptionprotectedChangeIndexCardinalPredicate(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String value, int cardinality) protectedChangeIndexCardinalPredicate(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String name, String value, int cardinality) -
Method Summary
Modifier and TypeMethodDescriptionintReturns an estimate of the number of results a source can return.Methods inherited from class com.google.gerrit.server.query.change.ChangeIndexPredicate
noneMethods inherited from class com.google.gerrit.index.query.IndexPredicate
getCost, getField, getType, matchMethods inherited from class com.google.gerrit.index.query.OperatorPredicate
copy, equals, getOperator, getValue, hashCode, toStringMethods 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:HasCardinalityReturns an estimate of the number of results a source can return.- Specified by:
getCardinalityin interfaceHasCardinality
-