Class RowTypeUtils

java.lang.Object
org.apache.flink.table.planner.typeutils.RowTypeUtils

public class RowTypeUtils extends Object
Utils for deriving row types of RelNodes.
  • Constructor Details

    • RowTypeUtils

      public RowTypeUtils()
  • Method Details

    • getUniqueName

      public static String getUniqueName(String oldName, List<String> checklist)
    • getUniqueName

      public static List<String> getUniqueName(List<String> oldNames, List<String> checklist)
    • projectRowType

      public static org.apache.flink.table.types.logical.RowType projectRowType(@Nonnull org.apache.flink.table.types.logical.RowType rowType, @Nonnull int[] projection) throws IllegalArgumentException
      Returns projected RowType by given projection indexes over original RowType. Will raise an error when projection index beyond the field count of original rowType.
      Parameters:
      rowType - source row type
      projection - indexes array
      Returns:
      projected RowType
      Throws:
      IllegalArgumentException