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
public class ChangeIndexPredicate extends IndexPredicate<ChangeData>
Predicate that is mapped to a field in the change index.
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChangeIndexPredicate(FieldDef<ChangeData,?> def, String value)
protected
ChangeIndexPredicate(FieldDef<ChangeData,?> def, String name, String value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
ChangeIndexPredicate
protected ChangeIndexPredicate(FieldDef<ChangeData,?> def, String value)
-
ChangeIndexPredicate
protected ChangeIndexPredicate(FieldDef<ChangeData,?> def, String name, String value)
-
-
Method Detail
-
none
public static Predicate<ChangeData> 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.
-
-