Class RouterProcessingModule

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

    public class RouterProcessingModule
    extends Object
    implements com.google.inject.Module
    This module is used to fulfill dependency injection of query processing and caching resources: buffer pools and thread pools on Router Druid node type. Router needs to inject those resources, because it depends on QueryToolChests, and they couple query type aspects not related to processing and caching, which Router uses, and related to processing and caching, which Router doesn't use, but they inject the resources.
    • Constructor Detail

      • RouterProcessingModule

        public RouterProcessingModule()
    • Method Detail

      • configure

        public void configure​(com.google.inject.Binder binder)
        Specified by:
        configure in interface com.google.inject.Module
      • getProcessingExecutorPool

        @Provides
        public org.apache.druid.query.QueryProcessingPool getProcessingExecutorPool​(org.apache.druid.query.DruidProcessingConfig config)
      • getIntermediateResultsPool

        @Provides
        public org.apache.druid.collections.NonBlockingPool<ByteBuffer> getIntermediateResultsPool()
      • getMergeBufferPool

        @Provides
        public org.apache.druid.collections.BlockingPool<ByteBuffer> getMergeBufferPool​(org.apache.druid.query.DruidProcessingConfig config)