| Package | Description |
|---|---|
| org.apache.druid.query.topn | |
| org.apache.druid.query.topn.types |
| Modifier and Type | Method and Description |
|---|---|
TopNQuery |
TopNQueryBuilder.build() |
TopNQuery |
TopNQuery.withAggregatorSpecs(List<AggregatorFactory> aggregatorSpecs) |
TopNQuery |
TopNQuery.withDimensionSpec(DimensionSpec spec) |
TopNQuery |
TopNQuery.withOverriddenContext(Map<String,Object> contextOverrides) |
TopNQuery |
TopNQuery.withQuerySegmentSpec(QuerySegmentSpec querySegmentSpec) |
TopNQuery |
TopNQuery.withThreshold(int threshold) |
| Modifier and Type | Method and Description |
|---|---|
CacheStrategy<Result<TopNResultValue>,Object,TopNQuery> |
TopNQueryQueryToolChest.getCacheStrategy(TopNQuery query) |
QueryToolChest<Result<TopNResultValue>,TopNQuery> |
TopNQueryRunnerFactory.getToolchest() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TopNQueryEngine.canApplyExtractionInPost(TopNQuery query)
ExtractionFn which are one to one may have their execution deferred until as late as possible, since the
which value is used as the grouping key itself doesn't particularly matter. |
TopNQueryBuilder |
TopNQueryBuilder.copy(TopNQuery query)
Deprecated.
|
void |
TopNQueryMetrics.dimension(TopNQuery query)
Sets
getDimensionSpec().getDimension() of the given query as dimension. |
void |
DefaultTopNQueryMetrics.dimension(TopNQuery query) |
CacheStrategy<Result<TopNResultValue>,Object,TopNQuery> |
TopNQueryQueryToolChest.getCacheStrategy(TopNQuery query) |
void |
TopNQueryMetrics.granularity(TopNQuery query)
Sets the granularity of
BaseQuery.getGranularity() of the given query as dimension. |
void |
DefaultTopNQueryMetrics.granularity(TopNQuery query) |
TopNQueryMetrics |
TopNQueryQueryToolChest.makeMetrics(TopNQuery query) |
com.google.common.base.Function<Result<TopNResultValue>,Result<TopNResultValue>> |
TopNQueryQueryToolChest.makePostComputeManipulatorFn(TopNQuery query,
MetricManipulationFn fn) |
com.google.common.base.Function<Result<TopNResultValue>,Result<TopNResultValue>> |
TopNQueryQueryToolChest.makePreComputeManipulatorFn(TopNQuery query,
MetricManipulationFn fn) |
static TopNResultBuilder |
BaseTopNAlgorithm.makeResultBuilder(TopNParams params,
TopNQuery query) |
void |
TopNQueryMetrics.numComplexMetrics(TopNQuery query)
Sets the number of "complex" metrics of the given topN query as dimension.
|
void |
DefaultTopNQueryMetrics.numComplexMetrics(TopNQuery query) |
void |
TopNQueryMetrics.numMetrics(TopNQuery query)
Sets the number of metrics of the given topN query as dimension.
|
void |
DefaultTopNQueryMetrics.numMetrics(TopNQuery query) |
void |
DefaultTopNQueryMetrics.query(TopNQuery query) |
Sequence<Result<TopNResultValue>> |
TopNQueryEngine.query(TopNQuery query,
StorageAdapter adapter,
TopNQueryMetrics queryMetrics)
Do the thing - process a
StorageAdapter into a Sequence of TopNResultValue, with one of the
fine TopNAlgorithm available chosen based on the type of column being aggregated. |
RowSignature |
TopNQueryQueryToolChest.resultArraySignature(TopNQuery query) |
Sequence<Object[]> |
TopNQueryQueryToolChest.resultsAsArrays(TopNQuery query,
Sequence<Result<TopNResultValue>> resultSequence) |
void |
TopNQueryMetrics.threshold(TopNQuery query)
Sets
getThreshold() of the given query as dimension. |
void |
DefaultTopNQueryMetrics.threshold(TopNQuery query) |
| Constructor and Description |
|---|
AggregateTopNMetricFirstAlgorithm(StorageAdapter storageAdapter,
TopNQuery query,
NonBlockingPool<ByteBuffer> bufferPool) |
AggregatorArrayProvider(DimensionSelector dimSelector,
TopNQuery query,
int cardinality,
StorageAdapter storageAdapter) |
BaseArrayProvider(DimensionSelector dimSelector,
TopNQuery query,
StorageAdapter storageAdapter) |
HeapBasedTopNAlgorithm(StorageAdapter storageAdapter,
TopNQuery query) |
PooledTopNAlgorithm(StorageAdapter storageAdapter,
TopNQuery query,
NonBlockingPool<ByteBuffer> bufferPool) |
TimeExtractionTopNAlgorithm(StorageAdapter storageAdapter,
TopNQuery query) |
TopNMapFn(TopNQuery query,
TopNAlgorithm topNAlgorithm) |
TopNQueryBuilder(TopNQuery query) |
| Modifier and Type | Method and Description |
|---|---|
Aggregator[][] |
StringTopNColumnAggregatesProcessor.getRowSelector(TopNQuery query,
TopNParams params,
StorageAdapter storageAdapter) |
Aggregator[][] |
NullableNumericTopNColumnAggregatesProcessor.getRowSelector(TopNQuery query,
TopNParams params,
StorageAdapter storageAdapter) |
Aggregator[][] |
TopNColumnAggregatesProcessor.getRowSelector(TopNQuery query,
TopNParams params,
StorageAdapter storageAdapter)
Used by
HeapBasedTopNAlgorithm. |
long |
StringTopNColumnAggregatesProcessor.scanAndAggregate(TopNQuery query,
DimensionSelector selector,
Cursor cursor,
Aggregator[][] rowSelector) |
long |
NullableNumericTopNColumnAggregatesProcessor.scanAndAggregate(TopNQuery query,
Selector selector,
Cursor cursor,
Aggregator[][] rowSelector) |
long |
TopNColumnAggregatesProcessor.scanAndAggregate(TopNQuery query,
ValueSelectorType selector,
Cursor cursor,
Aggregator[][] rowSelector)
Used by
HeapBasedTopNAlgorithm. |
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.