if (theAggregators.length == 1) { BufferAggregator aggregator = theAggregators[0]; final Cursor cursor = params.getCursor(); if (cursor instanceof HistoricalCursor && if (theAggregators.length == 1) { BufferAggregator aggregator = theAggregators[0]; final Cursor cursor = params.getCursor(); if (cursor instanceof HistoricalCursor && specializedScanAndAggregateImplementations.add((params, positions, theAggregators) -> { if (theAggregators.length == 1) { return scanAndAggregateGeneric1Agg(params, positions, theAggregators[0], params.getCursor()); specializedScanAndAggregateImplementations.add((params, positions, theAggregators) -> { if (theAggregators.length == 2) { return scanAndAggregateGeneric2Agg(params, positions, theAggregators, params.getCursor());
final int numBytesPerRecord = params.getNumBytesPerRecord(); final int[] aggregatorSizes = params.getAggregatorSizes(); final Cursor cursor = params.getCursor(); final DimensionSelector dimSelector = params.getDimSelector();
if (theAggregators.length == 1) { BufferAggregator aggregator = theAggregators[0]; final Cursor cursor = params.getCursor(); if (cursor instanceof HistoricalCursor && if (theAggregators.length == 1) { BufferAggregator aggregator = theAggregators[0]; final Cursor cursor = params.getCursor(); if (cursor instanceof HistoricalCursor && specializedScanAndAggregateImplementations.add((params, positions, theAggregators) -> { if (theAggregators.length == 1) { return scanAndAggregateGeneric1Agg(params, positions, theAggregators[0], params.getCursor()); specializedScanAndAggregateImplementations.add((params, positions, theAggregators) -> { if (theAggregators.length == 2) { return scanAndAggregateGeneric2Agg(params, positions, theAggregators, params.getCursor());
final int numBytesPerRecord = params.getNumBytesPerRecord(); final int[] aggregatorSizes = params.getAggregatorSizes(); final Cursor cursor = params.getCursor(); final DimensionSelector dimSelector = params.getDimSelector();
@Override protected BufferAggregator[] makeDimValAggregateStore(PooledTopNParams params) { return makeBufferAggregators(params.getCursor(), query.getAggregatorSpecs()); }
@Override protected BufferAggregator[] makeDimValAggregateStore(PooledTopNParams params) { return makeBufferAggregators(params.getCursor(), query.getAggregatorSpecs()); }