Class LabelPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.OrPredicate<ChangeData>
com.google.gerrit.server.query.change.LabelPredicate
- All Implemented Interfaces:
Matchable<ChangeData>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected static class
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
protected final String
-
Constructor Summary
ConstructorsConstructorDescriptionLabelPredicate
(ChangeQueryBuilder.Arguments a, String value, Set<Account.Id> accounts, AccountGroup.UUID group, Integer count, com.google.gerrit.server.query.change.PredicateArgs.Operator countOp) -
Method Summary
Modifier and TypeMethodDescriptionprotected static Predicate<ChangeData>
equalsLabelPredicate
(LabelPredicate.Args args, String label, int expVal, Integer count) protected static Predicate<ChangeData>
magicLabelPredicate
(LabelPredicate.Args args, MagicLabelVote mlv, Integer count) protected static Predicate<ChangeData>
noLabelQuery
(LabelPredicate.Args args, String label) protected static Predicate<ChangeData>
onePredicate
(LabelPredicate.Args args, String label, int expVal, Integer count) protected static List<Predicate<ChangeData>>
toString()
Methods inherited from class com.google.gerrit.index.query.OrPredicate
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, match
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueries
-
Field Details
-
MAX_LABEL_VALUE
protected static final int MAX_LABEL_VALUE- See Also:
-
MAX_COUNT
protected static final int MAX_COUNT- See Also:
-
value
-
-
Constructor Details
-
LabelPredicate
public LabelPredicate(ChangeQueryBuilder.Arguments a, String value, Set<Account.Id> accounts, AccountGroup.UUID group, Integer count, com.google.gerrit.server.query.change.PredicateArgs.Operator countOp)
-
-
Method Details
-
predicates
-
onePredicate
protected static Predicate<ChangeData> onePredicate(LabelPredicate.Args args, String label, int expVal, Integer count) -
noLabelQuery
-
equalsLabelPredicate
protected static Predicate<ChangeData> equalsLabelPredicate(LabelPredicate.Args args, String label, int expVal, Integer count) -
magicLabelPredicate
protected static Predicate<ChangeData> magicLabelPredicate(LabelPredicate.Args args, MagicLabelVote mlv, Integer count) -
toString
- Overrides:
toString
in classOrPredicate<ChangeData>
-