public class DimExtractionTopNAlgorithm extends BaseTopNAlgorithm<Aggregator[][],Map<String,Aggregator[]>,TopNParams>
BaseTopNAlgorithm.AggregatorArrayProvider, BaseTopNAlgorithm.BaseArrayProvider<T>
EMPTY_ARRAY, INIT_POSITION_VALUE, SKIP_POSITION_VALUE
Constructor and Description |
---|
DimExtractionTopNAlgorithm(Capabilities capabilities,
TopNQuery query) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(TopNParams params) |
protected void |
closeAggregators(Map<String,Aggregator[]> stringMap) |
protected Map<String,Aggregator[]> |
makeDimValAggregateStore(TopNParams params) |
protected Aggregator[][] |
makeDimValSelector(TopNParams params,
int numProcessed,
int numToProcess) |
TopNParams |
makeInitParams(DimensionSelector dimSelector,
Cursor cursor) |
void |
scanAndAggregate(TopNParams params,
Aggregator[][] rowSelector,
Map<String,Aggregator[]> aggregatesStore,
int numProcessed) |
protected Aggregator[][] |
updateDimValSelector(Aggregator[][] aggregators,
int numProcessed,
int numToProcess) |
protected void |
updateResults(TopNParams params,
Aggregator[][] rowSelector,
Map<String,Aggregator[]> aggregatesStore,
TopNResultBuilder resultBuilder) |
makeAggregators, makeBufferAggregators, makeResultBuilder, run
public DimExtractionTopNAlgorithm(Capabilities capabilities, TopNQuery query)
public TopNParams makeInitParams(DimensionSelector dimSelector, Cursor cursor)
protected Aggregator[][] makeDimValSelector(TopNParams params, int numProcessed, int numToProcess)
makeDimValSelector
in class BaseTopNAlgorithm<Aggregator[][],Map<String,Aggregator[]>,TopNParams>
protected Aggregator[][] updateDimValSelector(Aggregator[][] aggregators, int numProcessed, int numToProcess)
updateDimValSelector
in class BaseTopNAlgorithm<Aggregator[][],Map<String,Aggregator[]>,TopNParams>
protected Map<String,Aggregator[]> makeDimValAggregateStore(TopNParams params)
makeDimValAggregateStore
in class BaseTopNAlgorithm<Aggregator[][],Map<String,Aggregator[]>,TopNParams>
public void scanAndAggregate(TopNParams params, Aggregator[][] rowSelector, Map<String,Aggregator[]> aggregatesStore, int numProcessed)
scanAndAggregate
in class BaseTopNAlgorithm<Aggregator[][],Map<String,Aggregator[]>,TopNParams>
protected void updateResults(TopNParams params, Aggregator[][] rowSelector, Map<String,Aggregator[]> aggregatesStore, TopNResultBuilder resultBuilder)
updateResults
in class BaseTopNAlgorithm<Aggregator[][],Map<String,Aggregator[]>,TopNParams>
protected void closeAggregators(Map<String,Aggregator[]> stringMap)
closeAggregators
in class BaseTopNAlgorithm<Aggregator[][],Map<String,Aggregator[]>,TopNParams>
public void cleanup(TopNParams params)
Copyright © 2011–2015. All rights reserved.