Examples of OptimizedPlan


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

     
     
      // return the PACT plan
      Plan plan = new Plan(sink, "Branching Union");
     
      OptimizedPlan oPlan = compileNoStats(plan);
     
      NepheleJobGraphGenerator jobGen = new NepheleJobGraphGenerator();
     
      //Compile plan to verify that no error is thrown
      jobGen.compileJobGraph(oPlan);
View Full Code Here

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

      sinks.add(sinkB);
     
      // return the PACT plan
      Plan plan = new Plan(sinks, "Plans With Multiple Data Sinks");
     
      OptimizedPlan oPlan = compileNoStats(plan);
     
      // ---------- check the optimizer plan ----------
     
      // number of sinks
      Assert.assertEquals("Wrong number of data sinks.", 2, oPlan.getDataSinks().size());
     
      // sinks contain all sink paths
      Set<String> allSinks = new HashSet<String>();
      allSinks.add(out1Path);
      allSinks.add(out2Path);
     
      for (SinkPlanNode n : oPlan.getDataSinks()) {
        String path = ((FileDataSink) n.getSinkNode().getPactContract()).getFilePath();
        Assert.assertTrue("Invalid data sink.", allSinks.remove(path));
      }
     
      // ---------- compile plan to nephele job graph to verify that no error is thrown ----------
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.