public abstract class NumericTopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType extends Map<?,Aggregator[]>> extends Object implements TopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType>
CARDINALITY_UNKNOWN| Constructor and Description |
|---|
NumericTopNColumnSelectorStrategy() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCardinality(ValueSelectorType selector) |
Aggregator[][] |
getDimExtractionRowSelector(TopNQuery query,
TopNParams params,
StorageAdapter storageAdapter)
Used by DimExtractionTopNAlgorithm.
|
static TopNColumnSelectorStrategy |
ofType(ValueType selectorType,
ValueType dimensionType) |
void |
updateDimExtractionResults(DimExtractionAggregateStoreType aggregatesStore,
TopNResultBuilder resultBuilder)
Used by DimExtractionTopNAlgorithm.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimExtractionScanAndAggregate, makeDimExtractionAggregateStorepublic static TopNColumnSelectorStrategy ofType(ValueType selectorType, ValueType dimensionType)
public int getCardinality(ValueSelectorType selector)
getCardinality in interface TopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType extends Map<?,Aggregator[]>>public Aggregator[][] getDimExtractionRowSelector(TopNQuery query, TopNParams params, StorageAdapter storageAdapter)
TopNColumnSelectorStrategygetDimExtractionRowSelector in interface TopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType extends Map<?,Aggregator[]>>query - The TopN query being servedparams - Parameters for the TopN query being servedstorageAdapter - Column storage adapter, to provide information about the column that can be used for
query optimization, e.g. whether dimension values are sorted or notpublic void updateDimExtractionResults(DimExtractionAggregateStoreType aggregatesStore, TopNResultBuilder resultBuilder)
TopNColumnSelectorStrategyupdateDimExtractionResults in interface TopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType extends Map<?,Aggregator[]>>aggregatesStore - Map created by makeDimExtractionAggregateStore()resultBuilder - TopN result builderCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.