private boolean isWeightedSetArrays(Inspector array) {
            Inspector firstObject = array.entry(0);
            if (firstObject.type() != Type.ARRAY) return false;
            if (firstObject.entryCount() != 2) return false;
            return true;
        }
Returns true if the given array represents a weighted set,
as a list of tuples
container-search/src/main/java/com/yahoo/prelude/hitfield/XmlRenderer.java