Class UploaderinPredicate
- 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.UploaderinPredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class UploaderinPredicate extends PostFilterPredicate<ChangeData>
Predicate that matches changes where the latest patch set was uploaded by a user in the provided group.
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentifiedUser.GenericFactory
userFactory
protected AccountGroup.UUID
uuid
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Constructor Description UploaderinPredicate(IdentifiedUser.GenericFactory userFactory, AccountGroup.UUID uuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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.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
-
-
-
-
Field Detail
-
userFactory
protected final IdentifiedUser.GenericFactory userFactory
-
uuid
protected final AccountGroup.UUID uuid
-
-
Constructor Detail
-
UploaderinPredicate
public UploaderinPredicate(IdentifiedUser.GenericFactory userFactory, AccountGroup.UUID uuid)
-
-
Method Detail
-
match
public boolean match(ChangeData cd)
Description copied from interface:Matchable
Does this predicate match this object?
-
getCost
public int getCost()
Description copied from interface:Matchable
Returns a cost estimate to run this predicate, higher figures cost more.
-
-