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