| Modifier and Type | Method and Description |
|---|---|
static void |
convertType(String directiveName,
Row row,
String column,
String toType)
Converts the column type into another type.
|
static void |
rename(String directiveName,
Row row,
String column,
String toName)
Renames a column.
|
public static void rename(String directiveName, Row row, String column, String toName) throws DirectiveExecutionException
row - source record to be modified.column - name of the column within source record.toName - the target name of the column.DirectiveExecutionException - when a column matching the target name already exists or the given column
does not existpublic static void convertType(String directiveName, Row row, String column, String toType) throws DirectiveExecutionException
row - source record to be modified.column - name of the column within source record.toType - the target type of the column.DirectiveExecutionException - when an unsupported type is specified or the column can not be converted.Copyright © 2021 CDAP Licensed under the Apache License, Version 2.0.