Class ChangeQueryProcessor
- java.lang.Object
-
- com.google.gerrit.index.query.QueryProcessor<ChangeData>
-
- com.google.gerrit.server.query.change.ChangeQueryProcessor
-
- All Implemented Interfaces:
PluginDefinedAttributesFactory
public class ChangeQueryProcessor extends com.google.gerrit.index.query.QueryProcessor<ChangeData> implements PluginDefinedAttributesFactory
Query processor for the change 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 Classes Modifier and Type Class Description static interface
ChangeQueryProcessor.ChangeAttributeFactory
Register a ChangeAttributeFactory in a config Module like this:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PluginDefinedInfo>
create(ChangeData cd)
protected com.google.gerrit.index.QueryOptions
createOptions(com.google.gerrit.index.IndexConfig indexConfig, int start, int limit, Set<String> requestedFields)
ChangeQueryProcessor
enforceVisibility(boolean enforce)
protected com.google.gerrit.index.query.Predicate<ChangeData>
enforceVisibility(com.google.gerrit.index.query.Predicate<ChangeData> pred)
-
-
-
Method Detail
-
enforceVisibility
public ChangeQueryProcessor enforceVisibility(boolean enforce)
- Overrides:
enforceVisibility
in classcom.google.gerrit.index.query.QueryProcessor<ChangeData>
-
createOptions
protected com.google.gerrit.index.QueryOptions createOptions(com.google.gerrit.index.IndexConfig indexConfig, int start, int limit, Set<String> requestedFields)
- Overrides:
createOptions
in classcom.google.gerrit.index.query.QueryProcessor<ChangeData>
-
create
public List<PluginDefinedInfo> create(ChangeData cd)
- Specified by:
create
in interfacePluginDefinedAttributesFactory
-
enforceVisibility
protected com.google.gerrit.index.query.Predicate<ChangeData> enforceVisibility(com.google.gerrit.index.query.Predicate<ChangeData> pred)
- Specified by:
enforceVisibility
in classcom.google.gerrit.index.query.QueryProcessor<ChangeData>
-
-