Class LogicalTypeUtils

java.lang.Object
org.apache.flink.table.types.logical.utils.LogicalTypeUtils

@Internal public final class LogicalTypeUtils extends Object
Utilities for handling LogicalTypes.
  • Method Details

    • removeTimeAttributes

      public static LogicalType removeTimeAttributes(LogicalType logicalType)
    • toInternalConversionClass

      public static Class<?> toInternalConversionClass(LogicalType type)
      Returns the conversion class for the given LogicalType that is used by the table runtime as internal data structure.
      See Also:
    • 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.
    • renameRowFields

      public static RowType renameRowFields(RowType rowType, List<String> newFieldNames)
      Renames the fields of the given RowType.