Class AccountQueryProcessor
java.lang.Object
com.google.gerrit.index.query.QueryProcessor<AccountState>
com.google.gerrit.server.query.account.AccountQueryProcessor
Query processor for the account index.
Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from class com.google.gerrit.index.query.QueryProcessor
QueryProcessor.Metrics
-
Field Summary
Fields inherited from class com.google.gerrit.index.query.QueryProcessor
start
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AccountQueryProcessor
(com.google.inject.Provider<CurrentUser> userProvider, AccountLimits.Factory limitsFactory, AccountQueryProcessor.AccountQueryMetrics accountQueryMetrics, IndexConfig indexConfig, AccountIndexCollection indexes, AccountIndexRewriter rewriter, AccountControl.Factory accountControlFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<AccountState>
Invoked after the query was rewritten.protected String
formatForLogging
(AccountState accountState) Methods inherited from class com.google.gerrit.index.query.QueryProcessor
createOptions, enforceVisibility, getEffectiveLimit, getInitialPageSize, getUserQueryLimit, isDisabled, query, query, setAllowIncompleteResults, setNoLimit, setRequestedFields, setStart, setUserProvidedLimit, setUserProvidedLimit
-
Constructor Details
-
AccountQueryProcessor
@Inject protected AccountQueryProcessor(com.google.inject.Provider<CurrentUser> userProvider, AccountLimits.Factory limitsFactory, AccountQueryProcessor.AccountQueryMetrics accountQueryMetrics, IndexConfig indexConfig, AccountIndexCollection indexes, AccountIndexRewriter rewriter, AccountControl.Factory accountControlFactory)
-
-
Method Details
-
enforceVisibility
Description copied from class:QueryProcessor
Invoked after the query was rewritten. Subclasses must overwrite this method to filter out results that are not visible to the calling user.- Specified by:
enforceVisibility
in classQueryProcessor<AccountState>
- Parameters:
pred
- the query- Returns:
- the modified query
-
formatForLogging
- Specified by:
formatForLogging
in classQueryProcessor<AccountState>
-