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>
A Predicate to match any number of BranchNameKeys with O(1) efficiency
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(ChangeData changeData) Does this predicate match this object?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 Details
-
BranchSetIndexPredicate
public BranchSetIndexPredicate(String name, Set<BranchNameKey> branches) throws com.google.gerrit.exceptions.StorageException - Throws:
com.google.gerrit.exceptions.StorageException
-
-
Method Details
-
match
Description copied from interface:Matchable
Does this predicate match this object?- Specified by:
match
in interfaceMatchable<ChangeData>
- Overrides:
match
in classOrPredicate<ChangeData>
-
toString
- Overrides:
toString
in classOrPredicate<ChangeData>
-