public static WeightedSetDataType getWeightedSet(DataType type, boolean createIfNonExistent, boolean removeIfZero) {
        return new WeightedSetDataType(type, createIfNonExistent, removeIfZero);
    }
Returns a weighted set datatype, where the elements are of the given type, and which supports the properties
createIfNonExistent and removeIfZero

@param type                the type to create a weighted set of
@param createIfNonExistent whether the type has createIfNonExistent
@param removeIfZero        whether the type has removeIfZero
@return the weighted set data type
document/src/main/java/com/yahoo/document/DataType.java