Class BranchSetIndexPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OrPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.BranchSetIndexPredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class BranchSetIndexPredicate extends OrPredicate<ChangeData>
A Predicate to match any number of BranchNameKeys with O(1) efficiency
-
-
Constructor Summary
Constructors Constructor Description BranchSetIndexPredicate(String name, Set<BranchNameKey> branches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(ChangeData changeData)Does this predicate match this object?StringtoString()-
Methods inherited from class com.google.gerrit.index.query.OrPredicate
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueries
-
-
-
-
Constructor Detail
-
BranchSetIndexPredicate
public BranchSetIndexPredicate(String name, Set<BranchNameKey> branches) throws com.google.gerrit.exceptions.StorageException
- Throws:
com.google.gerrit.exceptions.StorageException
-
-
Method Detail
-
match
public boolean match(ChangeData changeData)
Description copied from interface:MatchableDoes this predicate match this object?- Specified by:
matchin interfaceMatchable<ChangeData>- Overrides:
matchin classOrPredicate<ChangeData>
-
toString
public String toString()
- Overrides:
toStringin classOrPredicate<ChangeData>
-
-