@Override
    public String toString() {
        StringBuilder s = new StringBuilder();
        s.append("{");
        for (int i = 0; i < buffer.size(); i++) {
            s.append(buffer.get(i));
            if (i < buffer.size() - 1) {
                s.append(",");
            }
        }
        s.append("}");
        return s.toString();
    }
Create a copy of data in the internal buffer.

@return A copy of the data.
container-search/src/main/java/com/yahoo/search/grouping/request/RawBuffer.java