Class DistinctVotersPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.OperatorPredicate<ChangeData>
com.google.gerrit.server.query.change.SubmitRequirementPredicate
com.google.gerrit.server.submitrequirement.predicate.DistinctVotersPredicate
- All Implemented Interfaces:
Matchable<ChangeData>
A submit requirement predicate that allows checking for distinct voters across labels.
Examples:
- [Label-Name1,Label-Name2],value=MAX,count=2
- [Label-Name1,Label-Name2,Label-Name3],count=5
-
Nested Class Summary
Nested ClassesNested 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
Constructors -
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?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
-
Constructor Details
-
DistinctVotersPredicate
@Inject public DistinctVotersPredicate(ProjectCache projectCache, String value) throws QueryParseException - Throws:
QueryParseException
-
-
Method Details