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.
Constructor and Description |
---|
TypeInformationRawType()
Deprecated.
|
TypeInformationRawType(boolean isNullable,
TypeInformation<T> typeInfo)
Deprecated.
|
TypeInformationRawType(TypeInformation<T> typeInfo)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(LogicalTypeVisitor<R> visitor)
Deprecated.
|
String |
asSerializableString()
Deprecated.
Returns a string that fully serializes this instance.
|
String |
asSummaryString()
Deprecated.
Returns a string that summarizes this type for printing to a console.
|
LogicalType |
copy(boolean isNullable)
Deprecated.
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o)
Deprecated.
|
List<LogicalType> |
getChildren()
Deprecated.
|
Class<?> |
getDefaultConversion()
Deprecated.
Returns the default conversion class.
|
TypeInformation<T> |
getTypeInformation()
Deprecated.
|
int |
hashCode()
Deprecated.
|
RawType<T> |
resolve(ExecutionConfig config)
Deprecated.
|
boolean |
supportsInputConversion(Class<?> clazz)
Deprecated.
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)
Deprecated.
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, is, is, isAnyOf, isAnyOf, isNullable, toString, withNullability
public TypeInformationRawType(boolean isNullable, TypeInformation<T> typeInfo)
public TypeInformationRawType(TypeInformation<T> typeInfo)
public TypeInformationRawType()
public TypeInformation<T> getTypeInformation()
@Internal public RawType<T> resolve(ExecutionConfig config)
public LogicalType copy(boolean isNullable)
LogicalType
copy
in class LogicalType
isNullable
- the intended nullability of the copied typepublic String asSummaryString()
LogicalType
Use LogicalType.asSerializableString()
for a type string that fully serializes this instance.
asSummaryString
in class LogicalType
public String asSerializableString()
LogicalType
See LogicalTypeParser
for the reverse operation.
asSerializableString
in class LogicalType
public boolean supportsInputConversion(Class<?> clazz)
LogicalType
A 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
in class LogicalType
clazz
- input class to be converted into this logical typeLogicalType.getDefaultConversion()
public boolean supportsOutputConversion(Class<?> clazz)
LogicalType
A 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
in class LogicalType
clazz
- output class to be converted from this logical typeLogicalType.getDefaultConversion()
public Class<?> getDefaultConversion()
LogicalType
For example, java.lang.Long
is the default input and output for BIGINT
.
getDefaultConversion
in class LogicalType
LogicalType.supportsInputConversion(Class)
,
LogicalType.supportsOutputConversion(Class)
public List<LogicalType> getChildren()
getChildren
in class LogicalType
public <R> R accept(LogicalTypeVisitor<R> visitor)
accept
in class LogicalType
public boolean equals(Object o)
equals
in class LogicalType
public int hashCode()
hashCode
in class LogicalType
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.