Class DestinationPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<T>
-
- com.google.gerrit.index.query.PostFilterPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.DestinationPredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class DestinationPredicate extends PostFilterPredicate<ChangeData>
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<BranchNameKey>
destinations
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Constructor Description DestinationPredicate(Set<BranchNameKey> destinations, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCost()
boolean
match(ChangeData object)
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, getLeafCount, isMatchable, not, or, or
-
-
-
-
Field Detail
-
destinations
protected Set<BranchNameKey> destinations
-
-
Constructor Detail
-
DestinationPredicate
public DestinationPredicate(Set<BranchNameKey> destinations, String value)
-
-
Method Detail
-
match
public boolean match(ChangeData object)
Description copied from interface:Matchable
Does this predicate match this object?
-
getCost
public int getCost()
- Returns:
- a cost estimate to run this predicate, higher figures cost more.
-
-