Class BeforePredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<I>
-
- com.google.gerrit.index.query.IndexPredicate<I>
-
- com.google.gerrit.index.query.TimestampRangePredicate<ChangeData>
-
- com.google.gerrit.server.query.change.TimestampRangeChangePredicate
-
- com.google.gerrit.server.query.change.BeforePredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class BeforePredicate extends TimestampRangeChangePredicate
Predicate that matches aTimestamp
field from the index in a range from the the epoch to the passedString
representation of the Timestamp value.
-
-
Field Summary
Fields Modifier and Type Field Description protected Date
cut
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Constructor Description BeforePredicate(FieldDef<ChangeData,Timestamp> def, String name, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getMaxTimestamp()
Date
getMinTimestamp()
boolean
match(ChangeData cd)
Does this predicate match this object?-
Methods inherited from class com.google.gerrit.server.query.change.TimestampRangeChangePredicate
getCost
-
Methods inherited from class com.google.gerrit.index.query.TimestampRangePredicate
getValueTimestamp, parse
-
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, getLeafCount, isMatchable, not, or, or
-
-
-
-
Field Detail
-
cut
protected final Date cut
-
-
Constructor Detail
-
BeforePredicate
public BeforePredicate(FieldDef<ChangeData,Timestamp> def, String name, String value) throws QueryParseException
- Throws:
QueryParseException
-
-
Method Detail
-
getMinTimestamp
public Date getMinTimestamp()
- Specified by:
getMinTimestamp
in classTimestampRangePredicate<ChangeData>
-
getMaxTimestamp
public Date getMaxTimestamp()
- Specified by:
getMaxTimestamp
in classTimestampRangePredicate<ChangeData>
-
match
public boolean match(ChangeData cd)
Description copied from interface:Matchable
Does this predicate match this object?
-
-