@PublicEvolving public final class UnresolvedUserDefinedType extends LogicalType
UnresolvedIdentifier.
It assumes that a type has been registered in a catalog and just needs to be resolved to a
DistinctType or StructuredType.
Two unresolved types are considered equal if they share the same path in a stable session context.
UserDefinedType,
Serialized Form| Constructor and Description |
|---|
UnresolvedUserDefinedType(boolean isNullable,
UnresolvedIdentifier unresolvedIdentifier) |
UnresolvedUserDefinedType(UnresolvedIdentifier unresolvedIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
UnresolvedIdentifier |
getUnresolvedIdentifier() |
int |
hashCode() |
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, is, is, isAnyOf, isAnyOf, isNullable, toString, withNullabilitypublic UnresolvedUserDefinedType(boolean isNullable,
UnresolvedIdentifier unresolvedIdentifier)
public UnresolvedUserDefinedType(UnresolvedIdentifier unresolvedIdentifier)
public UnresolvedIdentifier getUnresolvedIdentifier()
public LogicalType copy(boolean isNullable)
LogicalTypecopy in class LogicalTypeisNullable - the intended nullability of the copied typepublic String asSummaryString()
LogicalTypeUse LogicalType.asSerializableString() for a type string that fully serializes this instance.
asSummaryString in class LogicalTypepublic String asSerializableString()
LogicalTypeSee LogicalTypeParser for the reverse operation.
asSerializableString in class 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 in class 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 in class 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 in class LogicalTypeLogicalType.supportsInputConversion(Class),
LogicalType.supportsOutputConversion(Class)public List<LogicalType> getChildren()
getChildren in class LogicalTypepublic <R> R accept(LogicalTypeVisitor<R> visitor)
accept in class LogicalTypepublic boolean equals(Object o)
equals in class LogicalTypepublic int hashCode()
hashCode in class LogicalTypeCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.