T - internal data structure@Internal
public final class InternalTypeInfo<T>
extends org.apache.flink.api.common.typeinfo.TypeInformation<T>
implements org.apache.flink.table.types.DataTypeQueryable
LogicalType.
TypeInformation is a legacy class for the sole purpose of creating a TypeSerializer. Instances of TypeInformation are not required in the table ecosystem but
sometimes enforced by interfaces of other modules (such as Transformation). Therefore, this class acts as an adapter whenever type
information is required.
Use of(LogicalType) for type information of internal data structures.
Note: Instances of this class should only be created for passing it to interfaces that require
type information. This class should not be used as a replacement for a LogicalType.
Information such as the arity of a row type, field types, field names, etc. should be derived
from the LogicalType directly.
The original LogicalType 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.
| 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> InternalTypeInfo<T> |
of(org.apache.flink.table.types.logical.LogicalType type)
Creates type information for a
LogicalType that is represented by internal data
structures. |
static InternalTypeInfo<org.apache.flink.table.data.RowData> |
of(org.apache.flink.table.types.logical.RowType type)
Creates type information for a
RowType represented by internal data structures. |
static InternalTypeInfo<org.apache.flink.table.data.RowData> |
ofFields(org.apache.flink.table.types.logical.LogicalType... fieldTypes)
Creates type information for
RowType represented by internal data structures. |
static InternalTypeInfo<org.apache.flink.table.data.RowData> |
ofFields(org.apache.flink.table.types.logical.LogicalType[] fieldTypes,
String[] fieldNames)
Creates type information for
RowType represented by internal data structures. |
org.apache.flink.table.types.logical.LogicalType |
toLogicalType() |
String[] |
toRowFieldNames()
Deprecated.
TypeInformation should just be a thin wrapper of a serializer. This
method only exists for legacy code. It is recommended to use the RowType instead
for logical operations. |
org.apache.flink.table.types.logical.LogicalType[] |
toRowFieldTypes()
Deprecated.
TypeInformation should just be a thin wrapper of a serializer. This
method only exists for legacy code. It is recommended to use the RowType instead
for logical operations. |
RowDataSerializer |
toRowSerializer() |
int |
toRowSize()
Deprecated.
TypeInformation should just be a thin wrapper of a serializer. This
method only exists for legacy code. It is recommended to use the RowType instead
for logical operations. |
org.apache.flink.table.types.logical.RowType |
toRowType() |
org.apache.flink.api.common.typeutils.TypeSerializer<T> |
toSerializer() |
String |
toString() |
public static <T> InternalTypeInfo<T> of(org.apache.flink.table.types.logical.LogicalType type)
LogicalType that is represented by internal data
structures.public static InternalTypeInfo<org.apache.flink.table.data.RowData> of(org.apache.flink.table.types.logical.RowType type)
RowType represented by internal data structures.public static InternalTypeInfo<org.apache.flink.table.data.RowData> ofFields(org.apache.flink.table.types.logical.LogicalType... fieldTypes)
RowType represented by internal data structures.public static InternalTypeInfo<org.apache.flink.table.data.RowData> ofFields(org.apache.flink.table.types.logical.LogicalType[] fieldTypes, String[] fieldNames)
RowType represented by internal data structures.public org.apache.flink.table.types.logical.LogicalType toLogicalType()
public org.apache.flink.api.common.typeutils.TypeSerializer<T> toSerializer()
public org.apache.flink.table.types.logical.RowType toRowType()
public RowDataSerializer toRowSerializer()
@Deprecated public org.apache.flink.table.types.logical.LogicalType[] toRowFieldTypes()
TypeInformation should just be a thin wrapper of a serializer. This
method only exists for legacy code. It is recommended to use the RowType instead
for logical operations.@Deprecated public String[] toRowFieldNames()
TypeInformation should just be a thin wrapper of a serializer. This
method only exists for legacy code. It is recommended to use the RowType instead
for logical operations.@Deprecated public int toRowSize()
TypeInformation should just be a thin wrapper of a serializer. This
method only exists for legacy code. It is recommended to use the RowType instead
for logical operations.public 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.