Class 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.

    • Method Detail

      • enforceVisibility

        public ChangeQueryProcessor enforceVisibility​(boolean enforce)
        Overrides:
        enforceVisibility in class com.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 class com.google.gerrit.index.query.QueryProcessor<ChangeData>
      • enforceVisibility

        protected com.google.gerrit.index.query.Predicate<ChangeData> enforceVisibility​(com.google.gerrit.index.query.Predicate<ChangeData> pred)
        Specified by:
        enforceVisibility in class com.google.gerrit.index.query.QueryProcessor<ChangeData>