public class Wrangler extends Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord> implements LinearRelationalTransform
| 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)
prepareRun is invoked by the client once before the job is submitted, but after the resolution
of macros if there are any defined. |
Relation |
transform(RelationalTranformContext relationalTranformContext,
Relation relation) |
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, onRunFinishclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformcanUseEnginepublic Wrangler(Wrangler.Config config)
public void configurePipeline(PipelineConfigurer configurer)
configurePipeline in interface PipelineConfigurableconfigurePipeline in class Transform<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>public void prepareRun(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 SubmitterLifecycle<StageSubmitterContext>prepareRun in class 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(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
transform in interface Transformation<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.data.format.StructuredRecord>input - record to be transformed.emitter - to collect all the output of the transformation.Exception - thrown if there are any issue with the transformation.public Relation transform(RelationalTranformContext relationalTranformContext, Relation relation)
transform in interface LinearRelationalTransformCopyright © 2023 CCDAP Licensed under the Apache License, Version 2.0.