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