public Set<Entry<K, Integer>> entrySet() {
        return getPrimitiveMap().entrySet();
    }
Reserve space for this amount of keys in order to avoid resizing
document/src/main/java/com/yahoo/document/datatypes/WeightedSet.java