}
private Aggregator newAggregator(final PDataType type, SortOrder sortOrder, ImmutableBytesWritable ptr) {
switch( type ) {
case DECIMAL:
return new DecimalSumAggregator(sortOrder, ptr);
case UNSIGNED_DOUBLE:
case UNSIGNED_FLOAT:
case DOUBLE:
case FLOAT:
return new DoubleSumAggregator(sortOrder, ptr) {