Class MagicLabelPredicates.IndexMagicLabelPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<ChangeData>
com.google.gerrit.index.query.OperatorPredicate<ChangeData>
com.google.gerrit.index.query.IndexPredicate<ChangeData>
com.google.gerrit.server.query.change.ChangeIndexPredicate
com.google.gerrit.server.query.change.MagicLabelPredicates.IndexMagicLabelPredicate
- All Implemented Interfaces:
- Matchable<ChangeData>
- Enclosing class:
- MagicLabelPredicates
- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gerrit.index.query.PredicatePredicate.Any<T>
- 
Field SummaryFields inherited from class com.google.gerrit.index.query.OperatorPredicatename, value
- 
Constructor SummaryConstructorsConstructorDescriptionIndexMagicLabelPredicate(LabelPredicate.Args args, MagicLabelVote magicLabelVote, Account.Id account, Integer count) IndexMagicLabelPredicate(LabelPredicate.Args args, MagicLabelVote magicLabelVote, Integer count) 
- 
Method SummaryModifier and TypeMethodDescriptiongetLabel()booleanbooleanmatch(ChangeData changeData) This method matches documents without calling an index subsystem.Methods inherited from class com.google.gerrit.server.query.change.ChangeIndexPredicatenoneMethods inherited from class com.google.gerrit.index.query.IndexPredicategetCost, getField, getTypeMethods inherited from class com.google.gerrit.index.query.OperatorPredicatecopy, equals, getOperator, getValue, hashCode, toStringMethods inherited from class com.google.gerrit.index.query.Predicateand, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueriesMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gerrit.index.query.MatchablematchResult
- 
Constructor Details- 
IndexMagicLabelPredicatepublic IndexMagicLabelPredicate(LabelPredicate.Args args, MagicLabelVote magicLabelVote, Integer count) 
- 
IndexMagicLabelPredicatepublic IndexMagicLabelPredicate(LabelPredicate.Args args, MagicLabelVote magicLabelVote, Account.Id account, Integer count) 
 
- 
- 
Method Details- 
matchDescription copied from class:IndexPredicateThis 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
PhraseQueryto 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:
- matchin interface- Matchable<ChangeData>
- Overrides:
- matchin class- IndexPredicate<ChangeData>
- Returns:
- true if the predicate matches the provided I.
 
- Prefix: Lucene as well as
- 
getLabel
- 
ignoresUploaderApprovalspublic boolean ignoresUploaderApprovals()
 
-