public class RowTypeUtils extends Object
RelNode
s.Constructor and Description |
---|
RowTypeUtils() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getUniqueName(List<String> oldNames,
List<String> checklist) |
static String |
getUniqueName(String oldName,
List<String> checklist) |
static RowType |
projectRowType(RowType rowType,
int[] projection)
|
public static List<String> getUniqueName(List<String> oldNames, List<String> checklist)
public static RowType projectRowType(@Nonnull RowType rowType, @Nonnull int[] projection) throws IllegalArgumentException
RowType
by given projection indexes over original RowType
.
Will raise an error when projection index beyond the field count of original rowType.rowType
- source row typeprojection
- indexes arrayRowType
IllegalArgumentException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.