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