public class ChangeQueryProcessor extends com.google.gerrit.index.query.QueryProcessor<ChangeData> implements PluginDefinedAttributesFactory
Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
Modifier and Type | Class and Description |
---|---|
static interface |
ChangeQueryProcessor.ChangeAttributeFactory
Register a ChangeAttributeFactory in a config Module like this:
|
Modifier and Type | Method and Description |
---|---|
java.util.List<PluginDefinedInfo> |
create(ChangeData cd) |
protected com.google.gerrit.index.QueryOptions |
createOptions(com.google.gerrit.index.IndexConfig indexConfig,
int start,
int limit,
java.util.Set<java.lang.String> requestedFields) |
ChangeQueryProcessor |
enforceVisibility(boolean enforce) |
protected com.google.gerrit.index.query.Predicate<ChangeData> |
enforceVisibility(com.google.gerrit.index.query.Predicate<ChangeData> pred) |
public ChangeQueryProcessor enforceVisibility(boolean enforce)
enforceVisibility
in class com.google.gerrit.index.query.QueryProcessor<ChangeData>
protected com.google.gerrit.index.QueryOptions createOptions(com.google.gerrit.index.IndexConfig indexConfig, int start, int limit, java.util.Set<java.lang.String> requestedFields)
createOptions
in class com.google.gerrit.index.query.QueryProcessor<ChangeData>
public java.util.List<PluginDefinedInfo> create(ChangeData cd)
create
in interface PluginDefinedAttributesFactory
protected com.google.gerrit.index.query.Predicate<ChangeData> enforceVisibility(com.google.gerrit.index.query.Predicate<ChangeData> pred)
enforceVisibility
in class com.google.gerrit.index.query.QueryProcessor<ChangeData>