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 boolean
match(ChangeData changeData)
Does this predicate match this object?String
toString()
-
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:Matchable
Does this predicate match this object?- Specified by:
match
in interfaceMatchable<ChangeData>
- Overrides:
match
in classOrPredicate<ChangeData>
-
toString
public String toString()
- Overrides:
toString
in classOrPredicate<ChangeData>
-
-