Package org.apache.flink.client
Interface FlinkPipelineTranslator
-
- All Known Implementing Classes:
PlanTranslator,StreamGraphTranslator
public interface FlinkPipelineTranslatorThis can be used to turn aPipelineinto aJobGraph. There will be implementations for the different pipeline APIs that Flink supports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanTranslate(org.apache.flink.api.dag.Pipeline pipeline)org.apache.flink.runtime.jobgraph.JobGraphtranslateToJobGraph(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration optimizerConfiguration, int defaultParallelism)Creates aJobGraphfrom the givenPipelineand attaches the given jar files and classpaths to theJobGraph.StringtranslateToJSONExecutionPlan(org.apache.flink.api.dag.Pipeline pipeline)Extracts the execution plan (as JSON) from the givenPipeline.
-
-
-
Method Detail
-
translateToJobGraph
org.apache.flink.runtime.jobgraph.JobGraph translateToJobGraph(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration optimizerConfiguration, int defaultParallelism)Creates aJobGraphfrom the givenPipelineand attaches the given jar files and classpaths to theJobGraph.
-
translateToJSONExecutionPlan
String translateToJSONExecutionPlan(org.apache.flink.api.dag.Pipeline pipeline)
Extracts the execution plan (as JSON) from the givenPipeline.
-
canTranslate
boolean canTranslate(org.apache.flink.api.dag.Pipeline pipeline)
-
-