Search in sources :

Example 1 with LongSumAggregator

use of org.apache.phoenix.expression.aggregator.LongSumAggregator in project phoenix by apache.

the class CountAggregateFunction method newServerAggregator.

@Override
public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) {
    LongSumAggregator sumAgg = newClientAggregator();
    sumAgg.aggregate(null, ptr);
    return new CountAggregator(sumAgg);
}
Also used : LongSumAggregator(org.apache.phoenix.expression.aggregator.LongSumAggregator) CountAggregator(org.apache.phoenix.expression.aggregator.CountAggregator)

Aggregations

CountAggregator (org.apache.phoenix.expression.aggregator.CountAggregator)1 LongSumAggregator (org.apache.phoenix.expression.aggregator.LongSumAggregator)1