public class GroupByMergingQueryRunnerV2 extends Object implements QueryRunner<ResultRow>
QueryRunner objects, called queryables,
using a buffer provided by mergeBufferPool and a parallel executor provided by exec. Outputs a
fully aggregated stream of ResultRow objects. Does not apply post-aggregators.
The input queryables are expected to come from a GroupByQueryEngineV2. This code runs on data
servers, like Historicals.
This class has some resemblance to GroupByRowProcessor. See the javadoc of that class for a discussion of
similarities and differences.
Used by
GroupByStrategyV2.mergeRunners(ListeningExecutorService, Iterable).| Constructor and Description |
|---|
GroupByMergingQueryRunnerV2(GroupByQueryConfig config,
ExecutorService exec,
QueryWatcher queryWatcher,
Iterable<QueryRunner<ResultRow>> queryables,
int concurrencyHint,
BlockingPool<ByteBuffer> mergeBufferPool,
int mergeBufferSize,
com.fasterxml.jackson.databind.ObjectMapper spillMapper,
String processingTmpDir) |
| Modifier and Type | Method and Description |
|---|---|
Sequence<ResultRow> |
run(QueryPlus<ResultRow> queryPlus,
ResponseContext responseContext)
Runs the given query and returns results in a time-ordered sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic GroupByMergingQueryRunnerV2(GroupByQueryConfig config, ExecutorService exec, QueryWatcher queryWatcher, Iterable<QueryRunner<ResultRow>> queryables, int concurrencyHint, BlockingPool<ByteBuffer> mergeBufferPool, int mergeBufferSize, com.fasterxml.jackson.databind.ObjectMapper spillMapper, String processingTmpDir)
public Sequence<ResultRow> run(QueryPlus<ResultRow> queryPlus, ResponseContext responseContext)
QueryRunnerrun in interface QueryRunner<ResultRow>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.