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