switch (this.type) {
case COUNT:
// COUNT will only count those records in which the field in the brackets is NOT NULL.
return new CountAggregator();
case MAX:
return new MaxAggregator();
case MIN:
return new MinAggregator();
case AVG:
return new AvgAggregator();
case SUM: