Class UserDefinedType
- java.lang.Object
-
- org.apache.flink.table.types.logical.LogicalType
-
- org.apache.flink.table.types.logical.UserDefinedType
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DistinctType,StructuredType
@PublicEvolving public abstract class UserDefinedType extends LogicalType
Logical type of a user-defined representation for one or more built-in types. A user-defined type is either a distinct type or a structured type.A
UserDefinedTypeinstance is the result of a catalog lookup or an anonymous, inline definition (for structured types only). Therefore, the serialized string representation is a uniqueObjectIdentifier(if registered) or a representation does not exist (if unregistered).NOTE: Compared to the SQL standard, this class and subclasses are incomplete. We might add new features such as method declarations in the future.
- See Also:
DistinctType,StructuredType, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasSerializableString()Returns a string that fully serializes this instance.booleanequals(Object o)Optional<String>getDescription()Optional<ObjectIdentifier>getObjectIdentifier()inthashCode()booleanisFinal()-
Methods inherited from class org.apache.flink.table.types.logical.LogicalType
accept, asSummaryString, conversionSet, copy, copy, getChildren, getDefaultConversion, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, supportsInputConversion, supportsOutputConversion, toString, withNullability
-
-
-
-
Method Detail
-
getObjectIdentifier
public Optional<ObjectIdentifier> getObjectIdentifier()
-
isFinal
public boolean isFinal()
-
asSerializableString
public String asSerializableString()
Description copied from class:LogicalTypeReturns a string that fully serializes this instance. The serialized string can be used for transmitting or persisting a type.See
LogicalTypeParserfor the reverse operation.- Specified by:
asSerializableStringin classLogicalType- Returns:
- detailed string for transmission or persistence
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classLogicalType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLogicalType
-
-