@Override
    public MaxAggregationResult clone() {
        MaxAggregationResult obj = (MaxAggregationResult)super.clone();
        if (max != null) {
            obj.max = (SingleResultNode)max.clone();
        }
        return obj;
    }
Sets the maximum value found in all matching hits.

@param max The value.
@return This, to allow chaining.
searchlib/src/main/java/com/yahoo/searchlib/aggregation/MaxAggregationResult.java