Class ParentOfPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.ParentOfPredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class ParentOfPredicate extends OperatorPredicate<ChangeData> implements Matchable<ChangeData>
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<org.eclipse.jgit.revwalk.RevCommit>
parents
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Constructor Description ParentOfPredicate(String value, ChangeData change, GitRepositoryManager repoManager)
-
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.protected Set<org.eclipse.jgit.revwalk.RevCommit>
getParents(ChangeData change, GitRepositoryManager repoManager)
boolean
match(ChangeData changeData)
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
-
parents
protected final Set<org.eclipse.jgit.revwalk.RevCommit> parents
-
-
Constructor Detail
-
ParentOfPredicate
public ParentOfPredicate(String value, ChangeData change, GitRepositoryManager repoManager)
-
-
Method Detail
-
match
public boolean match(ChangeData changeData)
Description copied from interface:Matchable
Does this predicate match this object?- Specified by:
match
in interfaceMatchable<ChangeData>
-
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<ChangeData>
-
getParents
protected Set<org.eclipse.jgit.revwalk.RevCommit> getParents(ChangeData change, GitRepositoryManager repoManager)
-
-