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