Search in sources :

Example 1 with IterationNode

use of org.apache.flink.optimizer.dag.IterationNode in project flink by apache.

the class IdAndEstimatesVisitor method postVisit.

@Override
public void postVisit(OptimizerNode visitable) {
    // the node ids
    visitable.initId(this.id++);
    // connections need to figure out their maximum path depths
    for (DagConnection conn : visitable.getIncomingConnections()) {
        conn.initMaxDepth();
    }
    for (DagConnection conn : visitable.getBroadcastConnections()) {
        conn.initMaxDepth();
    }
    // the estimates
    visitable.computeOutputEstimates(this.statistics);
    // if required, recurse into the step function
    if (visitable instanceof IterationNode) {
        ((IterationNode) visitable).acceptForStepFunction(this);
    }
}
Also used : IterationNode(org.apache.flink.optimizer.dag.IterationNode) DagConnection(org.apache.flink.optimizer.dag.DagConnection)

Aggregations

DagConnection (org.apache.flink.optimizer.dag.DagConnection)1 IterationNode (org.apache.flink.optimizer.dag.IterationNode)1