@Public public class MultisetType extends DataType
NULL
) is mapped to some
multiplicity. There is no restriction of element types; it is the responsibility of the user to
ensure uniqueness.
A conversion is possible through a map that assigns each value to an integer multiplicity
(Map<t, Integer>
).
Constructor and Description |
---|
MultisetType(boolean isNullable,
DataType elementType) |
MultisetType(DataType elementType) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSQLString()
Returns a string that summarizes this type as SQL standard string for printing to a console.
|
void |
collectFieldIds(Set<Integer> fieldIds) |
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
DataType |
getElementType() |
int |
hashCode() |
void |
serializeJson(org.apache.paimon.shade.jackson2.com.fasterxml.jackson.core.JsonGenerator generator) |
copy, equalsIgnoreNullable, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, toString, withNullability
public static final String FORMAT
public MultisetType(boolean isNullable, DataType elementType)
public MultisetType(DataType elementType)
public DataType getElementType()
public DataType copy(boolean isNullable)
DataType
public String asSQLString()
DataType
asSQLString
in class DataType
public void serializeJson(org.apache.paimon.shade.jackson2.com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
serializeJson
in class DataType
IOException
public <R> R accept(DataTypeVisitor<R> visitor)
public void collectFieldIds(Set<Integer> fieldIds)
collectFieldIds
in class DataType
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.