public class SelectQueryRunnerFactory extends Object implements QueryRunnerFactory<Result<SelectResultValue>,SelectQuery>
| Constructor and Description |
|---|
SelectQueryRunnerFactory(SelectQueryQueryToolChest toolChest,
SelectQueryEngine engine,
QueryWatcher queryWatcher) |
| Modifier and Type | Method and Description |
|---|---|
QueryRunner<Result<SelectResultValue>> |
createRunner(Segment segment)
Given a specific segment, this method will create a QueryRunner.
|
QueryToolChest<Result<SelectResultValue>,SelectQuery> |
getToolchest()
Provides access to the toolchest for this specific query type.
|
QueryRunner<Result<SelectResultValue>> |
mergeRunners(ExecutorService queryExecutor,
Iterable<QueryRunner<Result<SelectResultValue>>> 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 SelectQueryRunnerFactory(SelectQueryQueryToolChest toolChest, SelectQueryEngine engine, QueryWatcher queryWatcher)
public QueryRunner<Result<SelectResultValue>> createRunner(Segment segment)
QueryRunnerFactorycreateRunner in interface QueryRunnerFactory<Result<SelectResultValue>,SelectQuery>segment - The segment to processpublic QueryRunner<Result<SelectResultValue>> mergeRunners(ExecutorService queryExecutor, Iterable<QueryRunner<Result<SelectResultValue>>> queryRunners)
QueryRunnerFactorymergeRunners in interface QueryRunnerFactory<Result<SelectResultValue>,SelectQuery>queryExecutor - ExecutorService to be used for parallel processingqueryRunners - Individual QueryRunner objects that produce some resultspublic QueryToolChest<Result<SelectResultValue>,SelectQuery> getToolchest()
QueryRunnerFactorygetToolchest in interface QueryRunnerFactory<Result<SelectResultValue>,SelectQuery>Copyright © 2011–2017. All rights reserved.