public class GroupByQueryRunnerFactory extends Object implements QueryRunnerFactory<io.druid.data.input.Row,GroupByQuery>
| Constructor and Description |
|---|
GroupByQueryRunnerFactory(GroupByQueryEngine engine,
QueryWatcher queryWatcher,
com.google.common.base.Supplier<GroupByQueryConfig> config,
GroupByQueryQueryToolChest toolChest,
StupidPool<ByteBuffer> computationBufferPool) |
| Modifier and Type | Method and Description |
|---|---|
QueryRunner<io.druid.data.input.Row> |
createRunner(Segment segment)
Given a specific segment, this method will create a QueryRunner.
|
QueryToolChest<io.druid.data.input.Row,GroupByQuery> |
getToolchest()
Provides access to the toolchest for this specific query type.
|
QueryRunner<io.druid.data.input.Row> |
mergeRunners(ExecutorService exec,
Iterable<QueryRunner<io.druid.data.input.Row>> queryRunners)
Runners generated with createRunner() and combined into an Iterable in (time,shardId) order are passed
along to this method with an ExecutorService.
|
@Inject public GroupByQueryRunnerFactory(GroupByQueryEngine engine, QueryWatcher queryWatcher, com.google.common.base.Supplier<GroupByQueryConfig> config, GroupByQueryQueryToolChest toolChest, StupidPool<ByteBuffer> computationBufferPool)
public QueryRunner<io.druid.data.input.Row> createRunner(Segment segment)
QueryRunnerFactorycreateRunner in interface QueryRunnerFactory<io.druid.data.input.Row,GroupByQuery>segment - The segment to processpublic QueryRunner<io.druid.data.input.Row> mergeRunners(ExecutorService exec, Iterable<QueryRunner<io.druid.data.input.Row>> queryRunners)
QueryRunnerFactorymergeRunners in interface QueryRunnerFactory<io.druid.data.input.Row,GroupByQuery>exec - ExecutorService to be used for parallel processingqueryRunners - Individual QueryRunner objects that produce some resultspublic QueryToolChest<io.druid.data.input.Row,GroupByQuery> getToolchest()
QueryRunnerFactorygetToolchest in interface QueryRunnerFactory<io.druid.data.input.Row,GroupByQuery>Copyright © 2011–2015. All rights reserved.