Class IdAndEstimatesVisitor

  • All Implemented Interfaces:
    org.apache.flink.util.Visitor<OptimizerNode>

    public class IdAndEstimatesVisitor
    extends Object
    implements org.apache.flink.util.Visitor<OptimizerNode>
    This traversal of the optimizer DAG assigns IDs to each node (in a pre-order fashion), and calls each node to compute its estimates. The latter happens in the postVisit function, where it is guaranteed that all predecessors have computed their estimates.
    • Constructor Detail

      • IdAndEstimatesVisitor

        public IdAndEstimatesVisitor​(DataStatistics statistics)
    • Method Detail

      • preVisit

        public boolean preVisit​(OptimizerNode visitable)
        Specified by:
        preVisit in interface org.apache.flink.util.Visitor<OptimizerNode>
      • postVisit

        public void postVisit​(OptimizerNode visitable)
        Specified by:
        postVisit in interface org.apache.flink.util.Visitor<OptimizerNode>