Class IntegerRangeChangePredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<I>
-
- com.google.gerrit.index.query.IndexPredicate<T>
-
- com.google.gerrit.index.query.IntegerRangePredicate<ChangeData>
-
- com.google.gerrit.server.query.change.IntegerRangeChangePredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
- Direct Known Subclasses:
AddedPredicate
,DeletedPredicate
,DeltaPredicate
,IsAttentionPredicate
,IsUnresolvedPredicate
public abstract class IntegerRangeChangePredicate extends IntegerRangePredicate<ChangeData> implements Matchable<ChangeData>
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IntegerRangeChangePredicate(FieldDef<ChangeData,Integer> type, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.-
Methods inherited from class com.google.gerrit.index.query.IntegerRangePredicate
getMaximumValue, getMinimumValue, getValueInt, match
-
Methods inherited from class com.google.gerrit.index.query.IndexPredicate
getField, getType
-
Methods inherited from class com.google.gerrit.index.query.OperatorPredicate
copy, equals, getOperator, getValue, hashCode, toString
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueries
-
-
-
-
Constructor Detail
-
IntegerRangeChangePredicate
protected IntegerRangeChangePredicate(FieldDef<ChangeData,Integer> type, String value) throws QueryParseException
- Throws:
QueryParseException
-
-
Method Detail
-
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 classIndexPredicate<ChangeData>
-
-