public ResultBuilder setTransform(GroupingTransform transform) {
        this.transform = transform;
        return this;
    }
Sets the transform that details how the result should be built.

@param transform the transform to set
@return this, to allow chaining
container-search/src/main/java/com/yahoo/search/grouping/vespa/ResultBuilder.java