T - type of input recordE - type of error records emitted. Usually the same as the input record typepublic abstract class SplitterTransform<T,E> extends Object implements MultiOutputTransformation<T,E>, MultiOutputPipelineConfigurable, StageLifecycle<TransformContext>, SubmitterLifecycle<StageSubmitterContext>
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_TYPE |
| Constructor and Description |
|---|
SplitterTransform() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(MultiOutputPipelineConfigurer multiOutputPipelineConfigurer)
Configure a pipeline, adding datasets and streams that the stage needs.
|
void |
destroy()
Invoked for resources cleanup.
|
void |
initialize(TransformContext context)
Initialize the 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 configurePipeline(MultiOutputPipelineConfigurer multiOutputPipelineConfigurer)
MultiOutputPipelineConfigurableconfigurePipeline in interface MultiOutputPipelineConfigurablemultiOutputPipelineConfigurer - the configurer used to add required datasets and streamspublic void initialize(TransformContext context) throws Exception
StageLifecycleinitialize in interface StageLifecycle<TransformContext>context - execution contextException - if there is any error during initializationpublic 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 contextpublic void destroy()
Destroyabledestroy in interface DestroyableCopyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.