@Override
    public StringBuilder writeXML(StringBuilder target) {
        if (value.type() == Type.OBJECT) {
            writeXML(value.inspect(), target);
        } else {
            for (int i = 0; i < value.entryCount(); i++) {
                Inspector pos = value.entry(i);
                writeXML(pos, target);
            }
        }
        return target;
    }
A wrapper for structured data representing an array of position values.
container-search/src/main/java/com/yahoo/search/result/PositionsData.java