Class IndexModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class IndexModule
    extends com.google.gerrit.lifecycle.LifecycleModule
    Module for non-indexer-specific secondary index setup.

    This module should not be used directly except by specific secondary indexer implementations (e.g. Lucene).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  IndexModule.IndexType  
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexModule​(int threads, boolean slave)  
      IndexModule​(com.google.common.util.concurrent.ListeningExecutorService interactiveExecutor, com.google.common.util.concurrent.ListeningExecutorService batchExecutor)  
    • Field Detail

      • ALL_SCHEMA_DEFS

        public static final com.google.common.collect.ImmutableCollection<SchemaDefinitions<?>> ALL_SCHEMA_DEFS
    • Constructor Detail

      • IndexModule

        public IndexModule​(int threads,
                           boolean slave)
      • IndexModule

        public IndexModule​(com.google.common.util.concurrent.ListeningExecutorService interactiveExecutor,
                           com.google.common.util.concurrent.ListeningExecutorService batchExecutor)
    • Method Detail

      • getIndexType

        public static IndexModule.IndexType getIndexType​(com.google.inject.Injector injector)
        Type of secondary index.
      • getIndexType

        public static String getIndexType​(org.eclipse.jgit.lib.Config cfg)
        Type of secondary index.
      • configure

        protected void configure()
        Overrides:
        configure in class com.google.inject.AbstractModule