public class Wrangler
extends io.cdap.cdap.etl.api.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.
|
| Constructor and Description |
|---|
Wrangler(Wrangler.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(io.cdap.cdap.etl.api.PipelineConfigurer configurer)
Configures the plugin during deployment of the pipeline that uses the plugin.
|
void |
destroy() |
void |
initialize(io.cdap.cdap.etl.api.TransformContext context)
Initialize the wrangler by parsing the directives and creating the runtime context.
|
void |
prepareRun(io.cdap.cdap.etl.api.StageSubmitterContext context)
prepareRun is invoked by the client once before the job is submitted, but after the resolution
of macros if there are any defined. |
void |
transform(io.cdap.cdap.api.data.format.StructuredRecord input,
io.cdap.cdap.etl.api.Emitter<io.cdap.cdap.api.data.format.StructuredRecord> emitter)
Transforms the input record by applying directives on the record being passed.
|
public Wrangler(Wrangler.Config config)
public void configurePipeline(io.cdap.cdap.etl.api.PipelineConfigurer configurer)
configurePipeline in interface io.cdap.cdap.etl.api.PipelineConfigurableconfigurePipeline in class io.cdap.cdap.etl.api.Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>public void prepareRun(io.cdap.cdap.etl.api.StageSubmitterContext context)
throws Exception
prepareRun is invoked by the client once before the job is submitted, but after the resolution
of macros if there are any defined.prepareRun in interface io.cdap.cdap.etl.api.SubmitterLifecycle<io.cdap.cdap.etl.api.StageSubmitterContext>prepareRun in class io.cdap.cdap.etl.api.Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>context - a instance StageSubmitterContextException - thrown if there any issue with prepareRun.public void initialize(io.cdap.cdap.etl.api.TransformContext context)
throws Exception
initialize in interface io.cdap.cdap.etl.api.StageLifecycle<io.cdap.cdap.etl.api.TransformContext>initialize in class io.cdap.cdap.etl.api.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 io.cdap.cdap.etl.api.Destroyabledestroy in class io.cdap.cdap.etl.api.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,
io.cdap.cdap.etl.api.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 © 2023 CCDAP Licensed under the Apache License, Version 2.0.