Class AfterPredicate
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.AfterPredicate
- All Implemented Interfaces:
Matchable<ChangeData>
Predicate that matches a
Timestamp
field from the index in a range from the passed
String
representation of the Timestamp value to the maximum supported time.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
FieldsFields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
Constructor Summary
ConstructorsConstructorDescriptionAfterPredicate
(SchemaFieldDefs.SchemaField<ChangeData, Timestamp> def, String name, String value) -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(ChangeData cd) This method matches documents without calling an index subsystem.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, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueries
-
Field Details
-
cut
-
-
Constructor Details
-
AfterPredicate
public AfterPredicate(SchemaFieldDefs.SchemaField<ChangeData, Timestamp> def, String name, String value) throws QueryParseException- Throws:
QueryParseException
-
-
Method Details
-
getMinTimestamp
- Specified by:
getMinTimestamp
in classTimestampRangePredicate<ChangeData>
-
getMaxTimestamp
- Specified by:
getMaxTimestamp
in classTimestampRangePredicate<ChangeData>
-
match
Description copied from class:IndexPredicate
This method matches documents without calling an index subsystem. For primitive fields (e.g. integer, long) , the matching logic is consistent across this method and all known index implementations. For text fields (i.e. prefix and full-text) the semantics vary between this implementation and known index implementations:- Prefix: Lucene as well as
IndexPredicate.match(Object)
matches terms as true prefixes (prefix:foo -> `foo bar` matches, but `baz foo bar` does not match). The index implementation at Google tokenizes both the query and the indexed text and matches tokens individually (prefix:fo ba -> `baz foo bar` matches).- Full text: Lucene uses a
PhraseQuery
to search for terms in full text fields in-order. The index implementation at Google as well asIndexPredicate.match(Object)
tokenizes both the query and the indexed text and matches tokens individually.- Specified by:
match
in interfaceMatchable<ChangeData>
- Overrides:
match
in classIndexPredicate<ChangeData>
- Returns:
- true if the predicate matches the provided
I
.
- Prefix: Lucene as well as
-