public final SumAggregationResult setSum(SingleResultNode sum) {
        this.sum = sum;
        return this;
    }
Sets the sum of all results in this.

@param sum The sum to set.
@return This, to allow chaining.
searchlib/src/main/java/com/yahoo/searchlib/aggregation/SumAggregationResult.java