public interface QueryRunnerFactory<T,QueryType extends Query<T>>
Modifier and Type | Method and Description |
---|---|
QueryRunner<T> |
createRunner(Segment segment)
Given a specific segment, this method will create a QueryRunner.
|
QueryToolChest<T,QueryType> |
getToolchest()
Provides access to the toolchest for this specific query type.
|
QueryRunner<T> |
mergeRunners(ExecutorService queryExecutor,
Iterable<QueryRunner<T>> queryRunners)
Runners generated with createRunner() and combined into an Iterable in (time,shardId) order are passed
along to this method with an ExecutorService.
|
QueryRunner<T> createRunner(Segment segment)
segment
- The segment to processQueryRunner<T> mergeRunners(ExecutorService queryExecutor, Iterable<QueryRunner<T>> queryRunners)
queryExecutor
- ExecutorService to be used for parallel processingqueryRunners
- Individual QueryRunner objects that produce some resultsQueryToolChest<T,QueryType> getToolchest()
Copyright © 2011–2015. All rights reserved.