@Public public final class ArrayType extends DataType
Integer.MAX_VALUE
. Also, any
valid type is supported as a subtype.Constructor and Description |
---|
ArrayType(boolean isNullable,
DataType elementType) |
ArrayType(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 ArrayType(boolean isNullable, DataType elementType)
public ArrayType(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.