public class AccountQueryProcessor extends QueryProcessor<AccountState>
Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
QueryProcessor.Metrics
start
Modifier | Constructor and Description |
---|---|
protected |
AccountQueryProcessor(com.google.inject.Provider<CurrentUser> userProvider,
AccountLimits.Factory limitsFactory,
com.google.gerrit.metrics.MetricMaker metricMaker,
IndexConfig indexConfig,
AccountIndexCollection indexes,
AccountIndexRewriter rewriter,
AccountControl.Factory accountControlFactory) |
Modifier and Type | Method and Description |
---|---|
protected Predicate<AccountState> |
enforceVisibility(Predicate<AccountState> pred)
Invoked after the query was rewritten.
|
protected java.lang.String |
formatForLogging(AccountState accountState) |
createOptions, enforceVisibility, isDisabled, query, query, setRequestedFields, setStart, setUserProvidedLimit
@Inject protected AccountQueryProcessor(com.google.inject.Provider<CurrentUser> userProvider, AccountLimits.Factory limitsFactory, com.google.gerrit.metrics.MetricMaker metricMaker, IndexConfig indexConfig, AccountIndexCollection indexes, AccountIndexRewriter rewriter, AccountControl.Factory accountControlFactory)
protected Predicate<AccountState> enforceVisibility(Predicate<AccountState> pred)
QueryProcessor
enforceVisibility
in class QueryProcessor<AccountState>
pred
- the queryprotected java.lang.String formatForLogging(AccountState accountState)
formatForLogging
in class QueryProcessor<AccountState>