Class PlanFinalizer
- java.lang.Object
-
- org.apache.flink.optimizer.traversals.PlanFinalizer
-
- All Implemented Interfaces:
org.apache.flink.util.Visitor<PlanNode>
public class PlanFinalizer extends Object implements org.apache.flink.util.Visitor<PlanNode>
This visitor traverses the selected execution plan and finalizes it:- The graph of nodes is double-linked (links from child to parent are inserted).
- If unions join static and dynamic paths, the cache is marked as a memory consumer.
- Relative memory fractions are assigned to all nodes.
- All nodes are collected into a set.
-
-
Constructor Summary
Constructors Constructor Description PlanFinalizer()Creates a new plan finalizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptimizedPlancreateFinalPlan(List<SinkPlanNode> sinks, String jobName, org.apache.flink.api.common.Plan originalPlan)voidpostVisit(PlanNode visitable)booleanpreVisit(PlanNode visitable)
-
-
-
Method Detail
-
createFinalPlan
public OptimizedPlan createFinalPlan(List<SinkPlanNode> sinks, String jobName, org.apache.flink.api.common.Plan originalPlan)
-
preVisit
public boolean preVisit(PlanNode visitable)
- Specified by:
preVisitin interfaceorg.apache.flink.util.Visitor<PlanNode>
-
-