public static WeightedSetDataType getWeightedSet(DataType type) {
        return getWeightedSet(type, false, false);
    }
Returns a weighted set datatype, where the elements are of the given type

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