T - the type of input for the created transform executorspublic abstract class TransformExecutorFactory<T> extends Object
TransformExecutors.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isMapPhase |
protected Metrics |
metrics |
protected co.cask.cdap.api.data.schema.Schema |
outputSchema |
protected Map<String,Map<String,co.cask.cdap.api.data.schema.Schema>> |
perStageInputSchemas |
protected PipelinePluginInstantiator |
pluginInstantiator |
| Constructor and Description |
|---|
TransformExecutorFactory(JobContext hadoopContext,
PipelinePluginInstantiator pluginInstantiator,
Metrics metrics,
String sourceStageName,
MacroEvaluator macroEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
TransformExecutor<T> |
create(PipelinePhase pipeline)
Create a transform executor for the specified pipeline.
|
protected abstract BatchRuntimeContext |
createRuntimeContext(String stageName) |
protected <T extends Transformation & StageLifecycle<BatchRuntimeContext>> |
getInitializedTransformation(String stageName)
Instantiates and initializes the plugin for the stage.
|
protected static <IN,OUT> TrackedTransform<IN,OUT> |
getTrackedAggregateStep(Transformation<IN,OUT> transform,
StageMetrics stageMetrics) |
protected static <IN,OUT> TrackedTransform<IN,OUT> |
getTrackedEmitKeyStep(Transformation<IN,OUT> transform,
StageMetrics stageMetrics) |
protected static <IN,OUT> TrackedTransform<IN,OUT> |
getTrackedMergeStep(Transformation<IN,OUT> transform,
StageMetrics stageMetrics) |
protected TrackedTransform |
getTransformation(String pluginType,
String stageName) |
protected final Map<String,Map<String,co.cask.cdap.api.data.schema.Schema>> perStageInputSchemas
protected final PipelinePluginInstantiator pluginInstantiator
protected final Metrics metrics
protected co.cask.cdap.api.data.schema.Schema outputSchema
protected boolean isMapPhase
public TransformExecutorFactory(JobContext hadoopContext, PipelinePluginInstantiator pluginInstantiator, Metrics metrics, @Nullable String sourceStageName, MacroEvaluator macroEvaluator)
protected abstract BatchRuntimeContext createRuntimeContext(String stageName)
protected TrackedTransform getTransformation(String pluginType, String stageName) throws Exception
Exceptionpublic TransformExecutor<T> create(PipelinePhase pipeline) throws Exception
pipeline - the pipeline to create a transform executor forInstantiationException - if there was an error instantiating a pluginException - if there was an error initializing a pluginprotected <T extends Transformation & StageLifecycle<BatchRuntimeContext>> Transformation getInitializedTransformation(String stageName) throws Exception
stageName - the stage name.InstantiationException - if the plugin for the stage could not be instantiatedException - if there was a problem initializing the pluginprotected static <IN,OUT> TrackedTransform<IN,OUT> getTrackedEmitKeyStep(Transformation<IN,OUT> transform, StageMetrics stageMetrics)
protected static <IN,OUT> TrackedTransform<IN,OUT> getTrackedAggregateStep(Transformation<IN,OUT> transform, StageMetrics stageMetrics)
protected static <IN,OUT> TrackedTransform<IN,OUT> getTrackedMergeStep(Transformation<IN,OUT> transform, StageMetrics stageMetrics)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.