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:
AssigneePredicate
,AttentionSetPredicate
,AuthorPredicate
,BooleanPredicate
,ChangeIdPredicate
,ChangeStatusPredicate
,CherryPickOfChangePredicate
,CherryPickOfPatchSetPredicate
,CommentByPredicate
,CommentPredicate
,CommitPredicate
,CommitterPredicate
,DirectoryPredicate
,EditByPredicate
,EqualsFilePredicate
,EqualsLabelPredicate
,EqualsPathPredicate
,ExactAuthorPredicate
,ExactCommitterPredicate
,ExactTopicPredicate
,FileExtensionListPredicate
,FileExtensionPredicate
,FooterPredicate
,FuzzyTopicPredicate
,GroupPredicate
,HasDraftByPredicate
,HashtagPredicate
,HasStarsPredicate
,IsReviewedPredicate
,LegacyChangeIdPredicate
,LegacyChangeIdStrPredicate
,MessagePredicate
,OwnerPredicate
,ProjectPredicate
,ProjectPrefixPredicate
,RefPredicate
,RevertOfPredicate
,ReviewerPredicate
,StarPredicate
,SubmissionIdPredicate
,SubmitRecordPredicate
,SubmittablePredicate
,TrackingIdPredicate
public abstract class ChangeIndexPredicate extends IndexPredicate<ChangeData> implements Matchable<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
getField, getType
-
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, getLeafCount, isMatchable, not, or, or
-
-
-
-
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.
-
-