@Internal public final class ColumnOperationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.flink.table.expressions.Expression> |
addOrReplaceColumns(List<String> inputFields,
List<org.apache.flink.table.expressions.Expression> newExpressions)
Creates a projection list that adds new or replaces existing (if a column with corresponding name already exists)
columns.
|
static List<org.apache.flink.table.expressions.Expression> |
dropFields(List<String> inputFields,
List<org.apache.flink.table.expressions.Expression> dropExpressions)
Creates a projection list that removes given columns.
|
static List<org.apache.flink.table.expressions.Expression> |
renameColumns(List<String> inputFields,
List<org.apache.flink.table.expressions.Expression> newAliases)
Creates a projection list that renames existing columns to new names.
|
public static List<org.apache.flink.table.expressions.Expression> renameColumns(List<String> inputFields, List<org.apache.flink.table.expressions.Expression> newAliases)
NOTE: Resulting expression are still unresolved.
inputFields - names of current columnsnewAliases - new aliases for current columnspublic static List<org.apache.flink.table.expressions.Expression> addOrReplaceColumns(List<String> inputFields, List<org.apache.flink.table.expressions.Expression> newExpressions)
NOTE: Resulting expression are still unresolved.
inputFields - names of current columnsnewExpressions - new columns to addpublic static List<org.apache.flink.table.expressions.Expression> dropFields(List<String> inputFields, List<org.apache.flink.table.expressions.Expression> dropExpressions)
NOTE: Resulting expression are still unresolved.
inputFields - names of current columnsdropExpressions - columns to removeCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.