use of org.apache.flink.optimizer.plantranslate.JobGraphGenerator in project flink by apache.
the class PlanTranslator method compilePlan.
private JobGraph compilePlan(Plan plan, Configuration optimizerConfiguration) {
Optimizer optimizer = new Optimizer(new DataStatistics(), optimizerConfiguration);
OptimizedPlan optimizedPlan = optimizer.compile(plan);
JobGraphGenerator jobGraphGenerator = new JobGraphGenerator(optimizerConfiguration);
return jobGraphGenerator.compileJobGraph(optimizedPlan, plan.getJobId());
}
use of org.apache.flink.optimizer.plantranslate.JobGraphGenerator in project flink by apache.
the class AccumulatorLiveITCase method getJobGraph.
/**
* Helpers to generate the JobGraph.
*/
private static JobGraph getJobGraph(Plan plan) {
Optimizer pc = new Optimizer(new DataStatistics(), new Configuration());
JobGraphGenerator jgg = new JobGraphGenerator();
OptimizedPlan op = pc.compile(plan);
return jgg.compileJobGraph(op);
}
Aggregations