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 interfaceChangeQueryProcessor.ChangeAttributeFactoryRegister 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.QueryOptionscreateOptions(com.google.gerrit.index.IndexConfig indexConfig, int start, int limit, Set<String> requestedFields)ChangeQueryProcessorenforceVisibility(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:
enforceVisibilityin 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:
createOptionsin classcom.google.gerrit.index.query.QueryProcessor<ChangeData>
-
create
public List<PluginDefinedInfo> create(ChangeData cd)
- Specified by:
createin interfacePluginDefinedAttributesFactory
-
enforceVisibility
protected com.google.gerrit.index.query.Predicate<ChangeData> enforceVisibility(com.google.gerrit.index.query.Predicate<ChangeData> pred)
- Specified by:
enforceVisibilityin classcom.google.gerrit.index.query.QueryProcessor<ChangeData>
-
-