Class AccountIndexRewriter
java.lang.Object
com.google.gerrit.server.index.account.AccountIndexRewriter
- All Implemented Interfaces:
IndexRewriter<AccountState>
Rewriter for the account index. See
IndexRewriter
for details.-
Method Summary
Modifier and TypeMethodDescriptionrewrite
(Predicate<AccountState> in, QueryOptions opts) Returns a sanitized version of the provided predicate.void
validateMaxTermsInQuery
(Predicate<AccountState> predicate) Validates whether a query has too many terms.
-
Method Details
-
rewrite
public Predicate<AccountState> rewrite(Predicate<AccountState> in, QueryOptions opts) throws QueryParseException Description copied from interface:IndexRewriter
Returns a sanitized version of the provided predicate. UsesQueryOptions
to enforce index-specific limits such asmaxTerms
.- Specified by:
rewrite
in interfaceIndexRewriter<AccountState>
- Throws:
QueryParseException
-
validateMaxTermsInQuery
Validates whether a query has too many terms.- Parameters:
predicate
- the predicate for which the leaf predicates should be counted- Throws:
QueryParseException
- thrown if the query has too many terms
-