@Beta public interface Transformation
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_TYPE |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(TransformationContext context)
Initialize the Transformation plugin.
|
void |
transformSchema(MutableRowSchema rowSchema)
Apply transformation on the schema of a row.
|
void |
transformValue(MutableRowValue rowValue)
Apply transformation on the value of a row.
|
static final String PLUGIN_TYPE
void initialize(TransformationContext context) throws Exception
context - the transformation contextException - if the transformation can not be correctly initialized.void transformSchema(MutableRowSchema rowSchema) throws Exception
Schema of the impacted table needs to be calculated at design time.
2. when a StructuredRecord needs to be transformed at runtime, the schema StructuredRecord needs to
be transformed.rowSchema - the mutable row schemaExceptionvoid transformValue(MutableRowValue rowValue) throws Exception
StructuredRecord needs to be transformed at runtime.
This interface probably will change in the future to support multiple rows, e.g. flatten one row to multiple rows.rowValue - the mutable row valueExceptionCopyright © 2022 CDAP Licensed under the Apache License, Version 2.0.