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, wait
transform
public static final String PLUGIN_TYPE
public void configurePipeline(MultiOutputPipelineConfigurer multiOutputPipelineConfigurer)
MultiOutputPipelineConfigurable
configurePipeline
in interface MultiOutputPipelineConfigurable
multiOutputPipelineConfigurer
- the configurer used to add required datasets and streamspublic void initialize(TransformContext context) throws Exception
StageLifecycle
initialize
in interface StageLifecycle<TransformContext>
context
- execution contextException
- if there is any error during initializationpublic 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 contextpublic void destroy()
Destroyable
destroy
in interface Destroyable
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.