IN - Type of input objectOUT - Type of output object@Beta public abstract class Transform<IN,OUT> extends Object implements StageLifecycle<TransformContext>, SubmitterLifecycle<StageSubmitterContext>, Transformation<IN,OUT>, PipelineConfigurable
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_TYPE |
| Constructor and Description |
|---|
Transform() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer)
Configure an ETL pipeline.
|
void |
destroy()
Destroy the Transform Stage.
|
protected TransformContext |
getContext() |
void |
initialize(TransformContext context)
Initialize the Transform Stage.
|
void |
onRunFinish(boolean succeeded,
StageSubmitterContext context)
Invoked after the run finishes.
|
void |
prepareRun(StageSubmitterContext context)
Prepare the run.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic static final String PLUGIN_TYPE
public void initialize(TransformContext context) throws Exception
initialize in interface StageLifecycle<TransformContext>context - TransformContextException - if there is any error during initializationpublic void configurePipeline(PipelineConfigurer pipelineConfigurer)
configurePipeline in interface PipelineConfigurablepipelineConfigurer - the configurer used to add required datasets and streamspublic void destroy()
destroy in interface Destroyablepublic void prepareRun(StageSubmitterContext context) throws Exception
SubmitterLifecycleprepareRun in interface SubmitterLifecycle<StageSubmitterContext>context - submitter contextException - if there's an error during this method invocationpublic void onRunFinish(boolean succeeded,
StageSubmitterContext context)
SubmitterLifecycleonRunFinish in interface SubmitterLifecycle<StageSubmitterContext>succeeded - defines the result of batch execution: true if run succeeded, false otherwisecontext - submitter contextprotected TransformContext getContext()
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.