Class ChangeIndexPredicate
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
- All Implemented Interfaces:
Matchable<ChangeData>
- Direct Known Subclasses:
BooleanPredicate
,ChangeIndexCardinalPredicate
,ChangeIndexPostFilterPredicate
,ChangeStatusPredicate
,FileExtensionListPredicate
,FileExtensionPredicate
,GroupPredicate
,MagicLabelPredicates.IndexMagicLabelPredicate
,ReviewerPredicate
,SubmitRecordPredicate
,SubmittablePredicate
Predicate that is mapped to a field in the change index.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ChangeIndexPredicate
(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String value) protected
ChangeIndexPredicate
(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String name, String value) -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<ChangeData>
none()
Returns an index predicate that matches no changes in the index.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 Details
-
ChangeIndexPredicate
-
ChangeIndexPredicate
protected ChangeIndexPredicate(SchemaFieldDefs.SchemaField<ChangeData, ?> def, String name, String value)
-
-
Method Details
-
none
Returns an index predicate that matches no changes in the index.This predicate should be used in preference to a non-index predicate (such as
Predicate.not(Predicate.any())
), since it can be matched efficiently against the index.- Returns:
- an index predicate matching no changes.
-