Class LogicalTypeUtils
java.lang.Object
org.apache.flink.table.types.logical.utils.LogicalTypeUtils
Utilities for handling
LogicalTypes.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAtomicName(List<String> existingNames) Returns a unique name for an atomic type.static LogicalTyperemoveTimeAttributes(LogicalType logicalType) static RowTyperenameRowFields(RowType rowType, List<String> newFieldNames) Renames the fields of the givenRowType.static Class<?>Returns the conversion class for the givenLogicalTypethat is used by the table runtime as internal data structure.static RowTypeConverts any logical type to a row type.
-
Method Details
-
removeTimeAttributes
-
toInternalConversionClass
Returns the conversion class for the givenLogicalTypethat is used by the table runtime as internal data structure.- See Also:
-
toRowType
Converts any logical type to a row type. Composite types are converted to a row type. Atomic types are wrapped into a field. -
getAtomicName
Returns a unique name for an atomic type. -
renameRowFields
Renames the fields of the givenRowType.
-