Package org.apache.druid.guice
Class BrokerProcessingModule
java.lang.Object
org.apache.druid.guice.BrokerProcessingModule
- All Implemented Interfaces:
com.google.inject.Module
This module is used to fulfill dependency injection of query processing and caching resources: buffer pools and
thread pools on Broker. Broker does not need to be allocated an intermediate results pool.
This is separated from DruidProcessingModule to separate the needs of the broker from the historicals
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) getCachePopulator(com.fasterxml.jackson.databind.ObjectMapper smileMapper, CachePopulatorStats cachePopulatorStats, CacheConfig cacheConfig) getGroupByResourcesReservationPool(BlockingPool<ByteBuffer> mergeBufferPool, GroupByQueryConfig groupByQueryConfig) getIntermediateResultsPool(DruidProcessingConfig config, RuntimeInfo runtimeInfo) getMergeBufferPool(DruidProcessingConfig config, RuntimeInfo runtimeInfo) getMergeProcessingPool(LifecycleForkJoinPoolProvider poolProvider)
-
Constructor Details
-
BrokerProcessingModule
public BrokerProcessingModule()
-
-
Method Details
-
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein interfacecom.google.inject.Module
-
getCachePopulator
@Provides public CachePopulator getCachePopulator(com.fasterxml.jackson.databind.ObjectMapper smileMapper, CachePopulatorStats cachePopulatorStats, CacheConfig cacheConfig) -
getProcessingExecutorPool
-
getIntermediateResultsPool
@Provides public NonBlockingPool<ByteBuffer> getIntermediateResultsPool(DruidProcessingConfig config, RuntimeInfo runtimeInfo) -
getMergeBufferPool
@Provides public BlockingPool<ByteBuffer> getMergeBufferPool(DruidProcessingConfig config, RuntimeInfo runtimeInfo) -
getGroupByResourcesReservationPool
@Provides public GroupByResourcesReservationPool getGroupByResourcesReservationPool(BlockingPool<ByteBuffer> mergeBufferPool, GroupByQueryConfig groupByQueryConfig) -
getMergeProcessingPoolProvider
@Provides public LifecycleForkJoinPoolProvider getMergeProcessingPoolProvider(BrokerParallelMergeConfig config) -
getMergeProcessingPool
-