Class LogicalTypeUtils
- java.lang.Object
-
- org.apache.flink.table.types.logical.utils.LogicalTypeUtils
-
@Internal public final class LogicalTypeUtils extends Object
Utilities for handlingLogicalTypes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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<?>toInternalConversionClass(LogicalType type)Returns the conversion class for the givenLogicalTypethat is used by the table runtime as internal data structure.static RowTypetoRowType(LogicalType t)Converts any logical type to a row type.
-
-
-
Method Detail
-
removeTimeAttributes
public static LogicalType removeTimeAttributes(LogicalType logicalType)
-
toInternalConversionClass
public static Class<?> toInternalConversionClass(LogicalType type)
Returns the conversion class for the givenLogicalTypethat is used by the table runtime as internal data structure.- See Also:
RowData
-
toRowType
public static RowType toRowType(LogicalType t)
Converts any logical type to a row type. Composite types are converted to a row type. Atomic types are wrapped into a field.
-
getAtomicName
public static String getAtomicName(List<String> existingNames)
Returns a unique name for an atomic type.
-
-