pyflink.table.types.DataTypes.MULTISET#
- static DataTypes.MULTISET(element_type: pyflink.table.types.DataType, nullable: bool = True) pyflink.table.types.MultisetType [source]#
Data type of a multiset (=bag). Unlike a set, it allows for multiple instances for each of its elements with a common subtype. Each unique value is mapped to some multiplicity.
There is no restriction of element types; it is the responsibility of the user to ensure uniqueness.
- Parameters
element_type –
DataType
of each element in the multiset.nullable – boolean, whether the type can be null (None) or not.