Package org.apache.druid.client
Class CachingClusteredClient
java.lang.Object
org.apache.druid.client.CachingClusteredClient
- All Implemented Interfaces:
QuerySegmentWalker
This is the class on the Broker that is responsible for making native Druid queries to a cluster of data servers.
The main user of this class is
ClientQuerySegmentWalker. In tests, its behavior
is partially mimicked by TestClusterQuerySegmentWalker.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelper class to build a new timeline of filtered segments. -
Constructor Summary
ConstructorsConstructorDescriptionCachingClusteredClient(QueryRunnerFactoryConglomerate conglomerate, TimelineServerView serverView, Cache cache, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CachePopulator cachePopulator, CacheConfig cacheConfig, DruidHttpClientConfig httpClientConfig, BrokerParallelMergeConfig parallelMergeConfig, ForkJoinPool pool, QueryScheduler scheduler, ServiceEmitter emitter) -
Method Summary
Modifier and TypeMethodDescription<T> QueryRunner<T>getQueryRunnerForIntervals(Query<T> query, Iterable<org.joda.time.Interval> intervals) <T> QueryRunner<T>getQueryRunnerForSegments(Query<T> query, Iterable<SegmentDescriptor> specs)
-
Constructor Details
-
CachingClusteredClient
@Inject public CachingClusteredClient(QueryRunnerFactoryConglomerate conglomerate, TimelineServerView serverView, Cache cache, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CachePopulator cachePopulator, CacheConfig cacheConfig, DruidHttpClientConfig httpClientConfig, BrokerParallelMergeConfig parallelMergeConfig, ForkJoinPool pool, QueryScheduler scheduler, ServiceEmitter emitter)
-
-
Method Details
-
getQueryRunnerForIntervals
public <T> QueryRunner<T> getQueryRunnerForIntervals(Query<T> query, Iterable<org.joda.time.Interval> intervals) - Specified by:
getQueryRunnerForIntervalsin interfaceQuerySegmentWalker
-
getQueryRunnerForSegments
public <T> QueryRunner<T> getQueryRunnerForSegments(Query<T> query, Iterable<SegmentDescriptor> specs) - Specified by:
getQueryRunnerForSegmentsin interfaceQuerySegmentWalker
-