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.
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canEqual(Object obj) |
org.apache.flink.api.common.typeutils.TypeSerializer<T> |
createSerializer(org.apache.flink.api.common.ExecutionConfig 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 在接口中 org.apache.flink.table.types.DataTypeQueryablepublic boolean isBasicType()
isBasicType 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public boolean isTupleType()
isTupleType 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public int getArity()
getArity 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public int getTotalFields()
getTotalFields 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public Class<T> getTypeClass()
getTypeClass 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public boolean isKeyType()
isKeyType 在类中 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 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public String toString()
toString 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public boolean equals(Object o)
equals 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>public int hashCode()
hashCode 在类中 org.apache.flink.api.common.typeinfo.TypeInformation<T>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.