Package com.google.gerrit.index
Interface IndexRewriter<T>
-
- All Known Implementing Classes:
AccountIndexRewriter
,ChangeIndexRewriter
,GroupIndexRewriter
public interface IndexRewriter<T>
Rewriter to sanitize queries before they are sent to the index. The idea here is that the rewriter swaps out predicates so that the query can be processed by the index.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Predicate<T>
rewrite(Predicate<T> in, QueryOptions opts)
Returns a sanitized version of the provided predicate.
-
-
-
Method Detail
-
rewrite
Predicate<T> rewrite(Predicate<T> in, QueryOptions opts) throws QueryParseException
Returns a sanitized version of the provided predicate. UsesQueryOptions
to enforce index-specific limits such asmaxTerms
.- Throws:
QueryParseException
-
-