public class Wrangler extends Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>
| Modifier and Type | Class and Description |
|---|---|
static class |
Wrangler.Config
Config for the plugin.
|
PLUGIN_TYPE| Constructor and Description |
|---|
Wrangler(Wrangler.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer configurer)
Configures the plugin during deployment of the pipeline that uses the plugin.
|
void |
destroy() |
void |
initialize(TransformContext context)
Initialize the wrangler by parsing the directives and creating the runtime context.
|
void |
prepareRun(StageSubmitterContext context) |
void |
transform(io.cdap.cdap.api.data.format.StructuredRecord input,
Emitter<io.cdap.cdap.api.data.format.StructuredRecord> emitter)
Transforms the input record by applying directives on the record being passed.
|
getContext, onRunFinishpublic Wrangler(Wrangler.Config config)
public void configurePipeline(PipelineConfigurer configurer) throws IllegalArgumentException
configurePipeline in interface PipelineConfigurableconfigurePipeline in class Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>IllegalArgumentExceptionpublic void prepareRun(StageSubmitterContext context) throws Exception
prepareRun in interface SubmitterLifecycle<StageSubmitterContext>prepareRun in class Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>Exceptionpublic void initialize(TransformContext context) throws Exception
initialize in interface StageLifecycle<TransformContext>initialize in class Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>context - framework context being passed.Exceptionpublic void destroy()
destroy in interface Destroyabledestroy in class Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>public void transform(io.cdap.cdap.api.data.format.StructuredRecord input, Emitter<io.cdap.cdap.api.data.format.StructuredRecord> emitter) throws Exception
input - record to be transformed.emitter - to collect all the output of the transformation.Exception - thrown if there are any issue with the transformation.Copyright © 2019 CCDAP Licensed under the Apache License, Version 2.0.