public class StreamGraphTranslator extends Object implements FlinkPipelineTranslator
FlinkPipelineTranslator for DataStream API StreamGraphs.
Note: this is used through reflection in FlinkPipelineTranslationUtil.
| Constructor and Description |
|---|
StreamGraphTranslator(ClassLoader userClassloader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTranslate(org.apache.flink.api.dag.Pipeline pipeline) |
org.apache.flink.runtime.jobgraph.JobGraph |
translateToJobGraph(org.apache.flink.api.dag.Pipeline pipeline,
org.apache.flink.configuration.Configuration optimizerConfiguration,
int defaultParallelism)
Creates a
JobGraph from the given Pipeline and attaches the given jar files
and classpaths to the JobGraph. |
String |
translateToJSONExecutionPlan(org.apache.flink.api.dag.Pipeline pipeline)
Extracts the execution plan (as JSON) from the given
Pipeline. |
public StreamGraphTranslator(ClassLoader userClassloader)
public org.apache.flink.runtime.jobgraph.JobGraph translateToJobGraph(org.apache.flink.api.dag.Pipeline pipeline,
org.apache.flink.configuration.Configuration optimizerConfiguration,
int defaultParallelism)
FlinkPipelineTranslatorJobGraph from the given Pipeline and attaches the given jar files
and classpaths to the JobGraph.translateToJobGraph in interface FlinkPipelineTranslatorpublic String translateToJSONExecutionPlan(org.apache.flink.api.dag.Pipeline pipeline)
FlinkPipelineTranslatorPipeline.translateToJSONExecutionPlan in interface FlinkPipelineTranslatorpublic boolean canTranslate(org.apache.flink.api.dag.Pipeline pipeline)
canTranslate in interface FlinkPipelineTranslatorCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.