Class GraphCreatingVisitor

  • All Implemented Interfaces:
    org.apache.flink.util.Visitor<org.apache.flink.api.common.operators.Operator<?>>

    public class GraphCreatingVisitor
    extends Object
    implements org.apache.flink.util.Visitor<org.apache.flink.api.common.operators.Operator<?>>
    This traversal creates the optimizer DAG from a program. It works as a visitor that walks the program's flow in a depth-first fashion, starting from the data sinks. During the descent it creates an optimizer node for each operator, respectively data source or sink. During the ascent it connects the nodes to the full graph.
    • Constructor Detail

      • GraphCreatingVisitor

        public GraphCreatingVisitor​(int defaultParallelism,
                                    org.apache.flink.api.common.ExecutionMode defaultDataExchangeMode)
    • Method Detail

      • preVisit

        public boolean preVisit​(org.apache.flink.api.common.operators.Operator<?> c)
        Specified by:
        preVisit in interface org.apache.flink.util.Visitor<org.apache.flink.api.common.operators.Operator<?>>
      • postVisit

        public void postVisit​(org.apache.flink.api.common.operators.Operator<?> c)
        Specified by:
        postVisit in interface org.apache.flink.util.Visitor<org.apache.flink.api.common.operators.Operator<?>>