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