Class ApprovalQueryBuilder.ChangeIsPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<ApprovalContext>
com.google.gerrit.index.query.OperatorPredicate<ApprovalContext>
com.google.gerrit.server.query.approval.ApprovalQueryBuilder.ChangeIsPredicate
- All Implemented Interfaces:
Matchable<ApprovalContext>
- Enclosing class:
ApprovalQueryBuilder
public static class ApprovalQueryBuilder.ChangeIsPredicate
extends OperatorPredicate<ApprovalContext>
implements Matchable<ApprovalContext>
-
Nested Class Summary
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.boolean
match
(ApprovalContext approvalContext) Does this predicate match this object?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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gerrit.index.query.Matchable
matchResult
-
Constructor Details
-
ChangeIsPredicate
-
-
Method Details
-
match
Description copied from interface:Matchable
Does this predicate match this object?- Specified by:
match
in interfaceMatchable<ApprovalContext>
-
getCost
public int getCost()Description copied from interface:Matchable
Returns a cost estimate to run this predicate, higher figures cost more.- Specified by:
getCost
in interfaceMatchable<ApprovalContext>
-