Class AssigneePredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<I>
-
- com.google.gerrit.index.query.IndexPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.ChangeIndexPredicate
-
- com.google.gerrit.server.query.change.AssigneePredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class AssigneePredicate extends ChangeIndexPredicate
-
-
Field Summary
Fields Modifier and Type Field Description protected Account.Id
id
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Constructor Description AssigneePredicate(Account.Id id)
-
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.server.query.change.ChangeIndexPredicate
none
-
Methods inherited from class com.google.gerrit.index.query.IndexPredicate
getField, getType
-
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
-
id
protected final Account.Id id
-
-
Constructor Detail
-
AssigneePredicate
public AssigneePredicate(Account.Id id)
-
-
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.
-
-