public class FlinkBatchPortablePipelineTranslator extends java.lang.Object implements FlinkPortablePipelineTranslator<FlinkBatchPortablePipelineTranslator.BatchTranslationContext>
Example usage:
FlinkBatchPortablePipelineTranslator translator = FlinkBatchPortablePipelineTranslator.createTranslator(); BatchTranslationContext context = FlinkBatchPortablePipelineTranslator.createTranslationContext(jobInfo); translator.translate(context, pipeline); ExecutionEnvironment executionEnvironment = context.getExecutionEnvironment(); // Do something with executionEnvironment...
After translation the ExecutionEnvironment
in the translation context will contain the
full not-yet-executed pipeline DAG corresponding to the input pipeline.
Modifier and Type | Class and Description |
---|---|
static class |
FlinkBatchPortablePipelineTranslator.BatchTranslationContext
Batch translation context.
|
FlinkPortablePipelineTranslator.TranslationContext
Modifier and Type | Method and Description |
---|---|
static FlinkBatchPortablePipelineTranslator.BatchTranslationContext |
createTranslationContext(JobInfo jobInfo,
FlinkPipelineOptions pipelineOptions,
java.util.List<java.lang.String> filesToStage)
Creates a batch translation context.
|
static FlinkBatchPortablePipelineTranslator |
createTranslator()
Creates a batch translator.
|
void |
translate(FlinkBatchPortablePipelineTranslator.BatchTranslationContext context,
org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline pipeline)
Translates the given pipeline.
|
public static FlinkBatchPortablePipelineTranslator.BatchTranslationContext createTranslationContext(JobInfo jobInfo, FlinkPipelineOptions pipelineOptions, java.util.List<java.lang.String> filesToStage)
ExecutionEnvironment
.public static FlinkBatchPortablePipelineTranslator createTranslator()
public void translate(FlinkBatchPortablePipelineTranslator.BatchTranslationContext context, org.apache.beam.model.pipeline.v1.RunnerApi.Pipeline pipeline)
FlinkPortablePipelineTranslator
translate
in interface FlinkPortablePipelineTranslator<FlinkBatchPortablePipelineTranslator.BatchTranslationContext>