@Override
    public Object getWrappedValue() {
        if (map instanceof WeightedSet.WeightedSetWrapper) {
            return ((WeightedSet.WeightedSetWrapper) map).map;
        }
        return map.getWrappedValue();
    }
Returns the number of key-weight pairs in this set.

@return the number of key-weight pairs in this set
document/src/main/java/com/yahoo/document/datatypes/WeightedSet.java