public interface GroupByStrategy
| Modifier and Type | Method and Description |
|---|---|
Sequence<Row> |
applyPostProcessing(Sequence<Row> results,
GroupByQuery query) |
QueryRunner<Row> |
createIntervalChunkingRunner(IntervalChunkingQueryRunnerDecorator decorator,
QueryRunner<Row> runner,
GroupByQueryQueryToolChest toolChest)
Decorate a runner with an interval chunking decorator.
|
boolean |
doMergeResults(GroupByQuery query)
Indicates if this query should undergo "mergeResults" or not.
|
boolean |
isCacheable(boolean willMergeRunners)
Indicates this strategy is cacheable or not.
|
Sequence<Row> |
mergeResults(QueryRunner<Row> baseRunner,
GroupByQuery query,
Map<String,Object> responseContext) |
QueryRunner<Row> |
mergeRunners(com.google.common.util.concurrent.ListeningExecutorService exec,
Iterable<QueryRunner<Row>> queryRunners) |
GroupByQueryResource |
prepareResource(GroupByQuery query,
boolean willMergeRunners)
Initializes resources required for a broker to process the given query.
|
Sequence<Row> |
process(GroupByQuery query,
StorageAdapter storageAdapter) |
Sequence<Row> |
processSubqueryResult(GroupByQuery subquery,
GroupByQuery query,
GroupByQueryResource resource,
Sequence<Row> subqueryResult,
boolean wasQueryPushedDown) |
Sequence<Row> |
processSubtotalsSpec(GroupByQuery query,
GroupByQueryResource resource,
Sequence<Row> queryResult) |
boolean |
supportsNestedQueryPushDown() |
GroupByQueryResource prepareResource(GroupByQuery query, boolean willMergeRunners)
query - a groupBy query to be processedboolean isCacheable(boolean willMergeRunners)
willMergeRunners parameter can be used for distinguishing the caller is a broker or a data node.willMergeRunners - indicates that QueryRunnerFactory.mergeRunners(ExecutorService, Iterable) will be
called on the cached by-segment resultsboolean doMergeResults(GroupByQuery query)
QueryRunner<Row> createIntervalChunkingRunner(IntervalChunkingQueryRunnerDecorator decorator, QueryRunner<Row> runner, GroupByQueryQueryToolChest toolChest)
Sequence<Row> mergeResults(QueryRunner<Row> baseRunner, GroupByQuery query, Map<String,Object> responseContext)
Sequence<Row> applyPostProcessing(Sequence<Row> results, GroupByQuery query)
Sequence<Row> processSubqueryResult(GroupByQuery subquery, GroupByQuery query, GroupByQueryResource resource, Sequence<Row> subqueryResult, boolean wasQueryPushedDown)
Sequence<Row> processSubtotalsSpec(GroupByQuery query, GroupByQueryResource resource, Sequence<Row> queryResult)
QueryRunner<Row> mergeRunners(com.google.common.util.concurrent.ListeningExecutorService exec, Iterable<QueryRunner<Row>> queryRunners)
Sequence<Row> process(GroupByQuery query, StorageAdapter storageAdapter)
boolean supportsNestedQueryPushDown()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.