Class SubmitRequirementLabelExtensionPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<ChangeData>
com.google.gerrit.index.query.OperatorPredicate<ChangeData>
com.google.gerrit.server.query.change.SubmitRequirementPredicate
com.google.gerrit.server.submitrequirement.predicate.SubmitRequirementLabelExtensionPredicate
- All Implemented Interfaces:
Matchable<ChangeData>
Extensions of the
LabelPredicate
that are only available for submit requirement
expressions, but not for search.
Supported extensions:
- "users=human_reviewers" arg, e.g. "label:Code-Review=MAX,users=human_reviewers" matches changes where all human reviewers have approved the change with Code-Review=MAX
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
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
-
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.boolean
match
(ChangeData cd) Does this predicate match this object?static boolean
static void
validateIfNoMatch
(String value) Methods inherited from class com.google.gerrit.server.query.change.SubmitRequirementPredicate
supportedForQueries
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
-
Method Details
-
matches
-
validateIfNoMatch
- Throws:
QueryParseException
-
match
Description copied from interface:Matchable
Does this predicate match this object? -
getCost
public int getCost()Description copied from interface:Matchable
Returns a cost estimate to run this predicate, higher figures cost more.
-