@Override public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) { LongSumAggregator sumAgg = newClientAggregator(); sumAgg.aggregate(null, ptr); return new CountAggregator(sumAgg); } }
public CountAggregator(LongSumAggregator clientAgg) { this(); count = clientAgg.getSum(); }
@Override public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) { LongSumAggregator sumAgg = newClientAggregator(); sumAgg.aggregate(null, ptr); return new CountAggregator(sumAgg); } }
public CountAggregator(LongSumAggregator clientAgg) { this(); count = clientAgg.getSum(); }
@Override public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) { LongSumAggregator sumAgg = newClientAggregator(); sumAgg.aggregate(null, ptr); return new CountAggregator(sumAgg); } }
public CountAggregator(LongSumAggregator clientAgg) { this(); count = clientAgg.getSum(); }