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
-
Method Details
-
rewrite
Returns a sanitized version of the provided predicate. UsesQueryOptions
to enforce index-specific limits such asmaxTerms
.- Throws:
QueryParseException
-