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 TypeMethodDescriptionbooleanmatch(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, isMatchableMethods 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:MatchableDoes this predicate match this object?- Specified by:
matchin interfaceMatchable<ChangeData>- Overrides:
matchin classOrPredicate<ChangeData>
-
toString
- Overrides:
toStringin classOrPredicate<ChangeData>
-