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, wait
transform
public static final String PLUGIN_TYPE
public void initialize(TransformContext context) throws Exception
initialize
in interface StageLifecycle<TransformContext>
context
- TransformContext
Exception
- if there is any error during initializationpublic void configurePipeline(PipelineConfigurer pipelineConfigurer)
configurePipeline
in interface PipelineConfigurable
pipelineConfigurer
- the configurer used to add required datasets and streamspublic void destroy()
destroy
in interface Destroyable
public void prepareRun(StageSubmitterContext context) throws Exception
SubmitterLifecycle
prepareRun
in interface SubmitterLifecycle<StageSubmitterContext>
context
- submitter contextException
- if there's an error during this method invocationpublic void onRunFinish(boolean succeeded, StageSubmitterContext context)
SubmitterLifecycle
onRunFinish
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.