Class IsWatchedByPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.AndPredicate<ChangeData>
com.google.gerrit.server.query.change.IsWatchedByPredicate
- All Implemented Interfaces:
Matchable<ChangeData>
,Comparator<Predicate<ChangeData>>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
describe
(CurrentUser user) protected static List<Predicate<ChangeData>>
int
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.protected static Collection<ProjectWatches.ProjectWatchKey>
toString()
Methods inherited from class com.google.gerrit.index.query.AndPredicate
compare, copy, equals, getChild, getChildCount, getChildren, hashCode, isMatchable, match
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueries
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
user
-
-
Constructor Details
-
IsWatchedByPredicate
- Throws:
QueryParseException
-
-
Method Details
-
describe
-
filters
protected static List<Predicate<ChangeData>> filters(ChangeQueryBuilder.Arguments args) throws QueryParseException - Throws:
QueryParseException
-
getWatches
protected static Collection<ProjectWatches.ProjectWatchKey> getWatches(ChangeQueryBuilder.Arguments args) throws QueryParseException - Throws:
QueryParseException
-
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>
- Overrides:
getCost
in classAndPredicate<ChangeData>
-
toString
- Overrides:
toString
in classAndPredicate<ChangeData>
-