Package org.apache.flink.table.typeutils
Class RowTypeUtils
- java.lang.Object
-
- org.apache.flink.table.typeutils.RowTypeUtils
-
@Internal public class RowTypeUtils extends Object
Utils for deriving row types of org.apache.calcite.rel.RelNode.
-
-
Constructor Summary
Constructors Constructor Description RowTypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetUniqueName(String oldName, List<String> checklist)static List<String>getUniqueName(List<String> oldNames, List<String> checklist)static RowTypeprojectRowType(RowType rowType, int[] projection)
-
-
-
Method Detail
-
getUniqueName
public static List<String> getUniqueName(List<String> oldNames, List<String> checklist)
-
projectRowType
public static RowType projectRowType(@Nonnull RowType rowType, @Nonnull int[] projection) throws IllegalArgumentException
Returns projectedRowTypeby given projection indexes over originalRowType. Will raise an error when projection index beyond the field count of original rowType.- Parameters:
rowType- source row typeprojection- indexes array- Returns:
- projected
RowType - Throws:
IllegalArgumentException
-
-