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