RawType instead.@PublicEvolving @Deprecated public final class TypeInformationRawType<T> extends LogicalType
TypeInformation. This type is
a black box within the table ecosystem and is only deserialized at the edges. The raw type is an
extension to the SQL standard.
Compared to an RawType, this type does not contain a TypeSerializer yet. The
serializer will be generated from the enclosed TypeInformation but needs access to the
ExecutionConfig of the current execution environment. Thus, this type is just a
placeholder for the fully resolved RawType returned by resolve(ExecutionConfig).
This type has no serializable string representation.
If no type information is supplied, generic type serialization for Object is used.
| 构造器和说明 |
|---|
TypeInformationRawType()
已过时。
|
TypeInformationRawType(boolean isNullable,
org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
已过时。
|
TypeInformationRawType(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(LogicalTypeVisitor<R> visitor)
已过时。
|
String |
asSerializableString()
已过时。
Returns a string that fully serializes this instance.
|
String |
asSummaryString()
已过时。
Returns a string that summarizes this type for printing to a console.
|
LogicalType |
copy(boolean isNullable)
已过时。
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o)
已过时。
|
List<LogicalType> |
getChildren()
已过时。
|
Class<?> |
getDefaultConversion()
已过时。
Returns the default conversion class.
|
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getTypeInformation()
已过时。
|
int |
hashCode()
已过时。
|
RawType<T> |
resolve(org.apache.flink.api.common.ExecutionConfig config)
已过时。
|
boolean |
supportsInputConversion(Class<?> clazz)
已过时。
Returns whether an instance of the given class can be represented as a value of this logical
type when entering the table ecosystem.
|
boolean |
supportsOutputConversion(Class<?> clazz)
已过时。
Returns whether a value of this logical type can be represented as an instance of the given
class when leaving the table ecosystem.
|
conversionSet, copy, getTypeRoot, isNullable, toString, withNullabilitypublic TypeInformationRawType(boolean isNullable,
org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
public TypeInformationRawType(org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
public TypeInformationRawType()
public org.apache.flink.api.common.typeinfo.TypeInformation<T> getTypeInformation()
@Internal public RawType<T> resolve(org.apache.flink.api.common.ExecutionConfig config)
public LogicalType copy(boolean isNullable)
LogicalTypecopy 在类中 LogicalTypeisNullable - the intended nullability of the copied typepublic String asSummaryString()
LogicalTypeUse LogicalType.asSerializableString() for a type string that fully serializes this instance.
asSummaryString 在类中 LogicalTypepublic String asSerializableString()
LogicalTypeSee LogicalTypeParser for the reverse operation.
asSerializableString 在类中 LogicalTypepublic boolean supportsInputConversion(Class<?> clazz)
LogicalTypeA supported conversion directly maps an input class to a logical type without loss of precision or type widening.
For example, java.lang.Long or long can be used as input for BIGINT independent of the set nullability.
supportsInputConversion 在类中 LogicalTypeclazz - input class to be converted into this logical typeLogicalType.getDefaultConversion()public boolean supportsOutputConversion(Class<?> clazz)
LogicalTypeA supported conversion directly maps a logical type to an output class without loss of precision or type widening.
For example, java.lang.Long or long can be used as output for BIGINT if the type is not nullable. If the type is nullable, only java.lang.Long can
represent this.
supportsOutputConversion 在类中 LogicalTypeclazz - output class to be converted from this logical typeLogicalType.getDefaultConversion()public Class<?> getDefaultConversion()
LogicalTypeFor example, java.lang.Long is the default input and output for BIGINT.
getDefaultConversion 在类中 LogicalTypeLogicalType.supportsInputConversion(Class),
LogicalType.supportsOutputConversion(Class)public List<LogicalType> getChildren()
getChildren 在类中 LogicalTypepublic <R> R accept(LogicalTypeVisitor<R> visitor)
accept 在类中 LogicalTypepublic boolean equals(Object o)
equals 在类中 LogicalTypepublic int hashCode()
hashCode 在类中 LogicalTypeCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.