Package org.apache.flink.compiler.plan

Examples of org.apache.flink.compiler.plan.BinaryUnionPlanNode


    return Collections.emptyList();
  }

  @Override
  public DualInputPlanNode instantiate(Channel in1, Channel in2, TwoInputNode node) {
    return new BinaryUnionPlanNode((BinaryUnionNode) node, in1, in2);
  }
View Full Code Here


    @Override
    public void postVisit(PlanNode visitable) {
     
      if (visitable instanceof BinaryUnionPlanNode) {
        final BinaryUnionPlanNode unionNode = (BinaryUnionPlanNode) visitable;
        final Channel in1 = unionNode.getInput1();
        final Channel in2 = unionNode.getInput2();
     
        PlanNode newUnionNode;

        List<Channel> inputs = new ArrayList<Channel>();
        collect(in1, inputs);
        collect(in2, inputs);

        newUnionNode = new NAryUnionPlanNode(unionNode.getOptimizerNode(), inputs, unionNode.getGlobalProperties());

        for (Channel c : inputs) {
          c.setTarget(newUnionNode);
        }

        for(Channel channel : unionNode.getOutgoingChannels()){
          channel.swapUnionNodes(newUnionNode);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.flink.compiler.plan.BinaryUnionPlanNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.