T - external data structure@Internal
public final class ExternalTypeInfo<T>
extends org.apache.flink.api.common.typeinfo.TypeInformation<T>
implements org.apache.flink.table.types.DataTypeQueryable
DataType.
TypeInformation is a legacy class for the sole purpose of creating a TypeSerializer. This class acts as an adapter when entering or leaving the table ecosystem to
other APIs where type information is required.
The original DataType is stored in every instance (for access during pre-flight phase
and planning) but has no effect on equality because only serialization matters during runtime.
Note: This class is incomplete yet and only supports RAW types. But will be updated to support all kinds of data types in the future.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(Object obj) |
org.apache.flink.api.common.typeutils.TypeSerializer<T> |
createSerializer(org.apache.flink.api.common.ExecutionConfig config) |
org.apache.flink.api.common.typeutils.TypeSerializer<T> |
createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config) |
boolean |
equals(Object o) |
int |
getArity() |
org.apache.flink.table.types.DataType |
getDataType() |
int |
getTotalFields() |
Class<T> |
getTypeClass() |
int |
hashCode() |
boolean |
isBasicType() |
boolean |
isKeyType() |
boolean |
isTupleType() |
static <T> ExternalTypeInfo<T> |
of(org.apache.flink.table.types.DataType dataType)
Creates type information for a
DataType that is possibly represented by internal data
structures but serialized and deserialized into external data structures. |
static <T> ExternalTypeInfo<T> |
of(org.apache.flink.table.types.DataType dataType,
boolean isInternalInput)
Creates type information for a
DataType that is possibly represented by internal data
structures but serialized and deserialized into external data structures. |
String |
toString() |
public static <T> ExternalTypeInfo<T> of(org.apache.flink.table.types.DataType dataType)
DataType that is possibly represented by internal data
structures but serialized and deserialized into external data structures.public static <T> ExternalTypeInfo<T> of(org.apache.flink.table.types.DataType dataType, boolean isInternalInput)
DataType that is possibly represented by internal data
structures but serialized and deserialized into external data structures.isInternalInput - allows for a non-bidirectional serializer from internal to externalpublic org.apache.flink.table.types.DataType getDataType()
getDataType in interface org.apache.flink.table.types.DataTypeQueryablepublic boolean isBasicType()
isBasicType in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public boolean isTupleType()
isTupleType in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public int getArity()
getArity in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public int getTotalFields()
getTotalFields in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public Class<T> getTypeClass()
getTypeClass in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public boolean isKeyType()
isKeyType in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public org.apache.flink.api.common.typeutils.TypeSerializer<T> createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config)
createSerializer in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public org.apache.flink.api.common.typeutils.TypeSerializer<T> createSerializer(org.apache.flink.api.common.ExecutionConfig config)
createSerializer in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public String toString()
toString in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public boolean equals(Object o)
equals in class org.apache.flink.api.common.typeinfo.TypeInformation<T>public int hashCode()
hashCode in class org.apache.flink.api.common.typeinfo.TypeInformation<T>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.