Package org.apache.flink.client
Interface FlinkPipelineTranslator
- All Known Implementing Classes:
StreamGraphTranslator
public interface FlinkPipelineTranslator
This can be used to turn a
Pipeline into a JobGraph. There will be
implementations for the different pipeline APIs that Flink supports.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanTranslate(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.translateToJSONExecutionPlan(org.apache.flink.api.dag.Pipeline pipeline) Extracts the execution plan (as JSON) from the givenPipeline.
-
Method Details
-
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
Extracts the execution plan (as JSON) from the givenPipeline. -
canTranslate
boolean canTranslate(org.apache.flink.api.dag.Pipeline pipeline)
-