return sb.toString();
}
@Override
public Result execute() {
Result inResult = getInputTerm().execute();
AggregationExtender[] extenders = new AggregationExtender[extenderTerms.size()];
for (int i = 0; i < extenders.length; i++) {
extenders[i] = extenderTerms.get(i).getOperatorExtender(Utils.getCaf());
}
AggregationOperator oper;
if (groupIndexes.length != 0)
oper = new AggregationOperator(Utils.getCaf(), inResult.getResultRelation(), groupIndexes, extenders);
else
oper = new AggregationOperator(Utils.getCaf(), inResult.getResultRelation(), extenders);
inResult.extend(oper);
storeResult(inResult);
return inResult;
}