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,
Capabilities capabilities)
Used by DimExtractionTopNAlgorithm.
|
void |
updateDimExtractionResults(DimExtractionAggregateStoreType aggregatesStore,
com.google.common.base.Function<Object,Object> valueTransformer,
TopNResultBuilder resultBuilder)
Used by DimExtractionTopNAlgorithm.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimExtractionScanAndAggregate, getValueType, makeDimExtractionAggregateStorepublic int getCardinality(ValueSelectorType selector)
getCardinality in interface TopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType extends Map<?,Aggregator[]>>public Aggregator[][] getDimExtractionRowSelector(TopNQuery query, TopNParams params, Capabilities capabilities)
TopNColumnSelectorStrategygetDimExtractionRowSelector in interface TopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType extends Map<?,Aggregator[]>>query - The TopN query being servedparams - Parameters for the TopN query being servedcapabilities - Object indicating if dimension values are sortedpublic void updateDimExtractionResults(DimExtractionAggregateStoreType aggregatesStore, com.google.common.base.Function<Object,Object> valueTransformer, TopNResultBuilder resultBuilder)
TopNColumnSelectorStrategyupdateDimExtractionResults in interface TopNColumnSelectorStrategy<ValueSelectorType,DimExtractionAggregateStoreType extends Map<?,Aggregator[]>>aggregatesStore - Map created by makeDimExtractionAggregateStore()valueTransformer - Converts keys to different types, if null no conversion is neededresultBuilder - TopN result builderCopyright © 2011–2018. All rights reserved.