public class GroupByQueryRunnerFactory extends Object implements QueryRunnerFactory<Row,GroupByQuery>
Constructor and Description |
---|
GroupByQueryRunnerFactory(GroupByStrategySelector strategySelector,
GroupByQueryQueryToolChest toolChest) |
Modifier and Type | Method and Description |
---|---|
QueryRunner<Row> |
createRunner(Segment segment)
Given a specific segment, this method will create a QueryRunner.
|
QueryToolChest<Row,GroupByQuery> |
getToolchest()
Provides access to the toolchest for this specific query type.
|
QueryRunner<Row> |
mergeRunners(ExecutorService exec,
Iterable<QueryRunner<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(GroupByStrategySelector strategySelector, GroupByQueryQueryToolChest toolChest)
public QueryRunner<Row> createRunner(Segment segment)
QueryRunnerFactory
createRunner
in interface QueryRunnerFactory<Row,GroupByQuery>
segment
- The segment to processpublic QueryRunner<Row> mergeRunners(ExecutorService exec, Iterable<QueryRunner<Row>> queryRunners)
QueryRunnerFactory
mergeRunners
in interface QueryRunnerFactory<Row,GroupByQuery>
exec
- ExecutorService to be used for parallel processingqueryRunners
- Individual QueryRunner objects that produce some resultspublic QueryToolChest<Row,GroupByQuery> getToolchest()
QueryRunnerFactory
getToolchest
in interface QueryRunnerFactory<Row,GroupByQuery>
Copyright © 2011–2017. All rights reserved.