Class RowTypeUtils
java.lang.Object
org.apache.flink.table.planner.typeutils.RowTypeUtils
Utils for deriving row types of
RelNodes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetUniqueName(String oldName, List<String> checklist) getUniqueName(List<String> oldNames, List<String> checklist) static org.apache.flink.table.types.logical.RowTypeprojectRowType(org.apache.flink.table.types.logical.RowType rowType, int[] projection) Returns projectedRowTypeby given projection indexes over originalRowType.
-
Constructor Details
-
RowTypeUtils
public RowTypeUtils()
-
-
Method Details
-
getUniqueName
-
getUniqueName
-
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 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
-