Examples of PlanJSONDumpGenerator


Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

    OptimizedPlan optPlan = compileNoStats(plan);
    OptimizerPlanNodeResolver or = getOptimizerPlanNodeResolver(optPlan);
   
    if (PRINT_PLAN) {
      PlanJSONDumpGenerator dumper = new PlanJSONDumpGenerator();
      String json = dumper.getOptimizerPlanAsJSON(optPlan);
      System.out.println(json);
    }
   
    SourcePlanNode vertexSource = or.getNode(VERTEX_SOURCE);
    SourcePlanNode edgesSource = or.getNode(EDGES_SOURCE);
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

    OptimizedPlan optPlan = compileNoStats(plan);
    OptimizerPlanNodeResolver or = getOptimizerPlanNodeResolver(optPlan);
   
    if (PRINT_PLAN) {
      PlanJSONDumpGenerator dumper = new PlanJSONDumpGenerator();
      String json = dumper.getOptimizerPlanAsJSON(optPlan);
      System.out.println(json);
    }
   
    SourcePlanNode vertexSource = or.getNode(VERTEX_SOURCE);
    SourcePlanNode edgesSource = or.getNode(EDGES_SOURCE);
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

    OptimizedPlan optPlan = compileNoStats(plan);
    OptimizerPlanNodeResolver or = getOptimizerPlanNodeResolver(optPlan);
   
    if (PRINT_PLAN) {
      PlanJSONDumpGenerator dumper = new PlanJSONDumpGenerator();
      String json = dumper.getOptimizerPlanAsJSON(optPlan);
      System.out.println(json);
    }
   
    SourcePlanNode vertexSource = or.getNode(VERTEX_SOURCE);
    SourcePlanNode edgesSource = or.getNode(EDGES_SOURCE);
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

     
      iter.closeWith(result.map(new IdentityMapper<Tuple2<Long,Long>>()), result).print();
     
      OptimizedPlan p = compileNoStats(env.createProgramPlan());
     
      new PlanJSONDumpGenerator().getOptimizerPlanAsJSON(p);
    }
    catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

    @Override
    public String getExecutionPlan() throws Exception {
      OptimizedPlan op = compileProgram("unused");
     
      PlanJSONDumpGenerator jsonGen = new PlanJSONDumpGenerator();
      return jsonGen.getOptimizerPlanAsJSON(op);
    }
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

  public String getOptimizerPlanAsJSON(Plan plan) throws Exception {
    JobWithJars p = new JobWithJars(plan, this.jarFiles);
    Client c = new Client(this.address, new Configuration(), p.getUserCodeClassLoader());
   
    OptimizedPlan op = c.getOptimizedPlan(p, -1);
    PlanJSONDumpGenerator jsonGen = new PlanJSONDumpGenerator();
    return jsonGen.getOptimizerPlanAsJSON(op);
  }
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

   * @throws Exception
   */
  public String getOptimizerPlanAsJSON(Plan plan) throws Exception {
    PactCompiler pc = new PactCompiler(new DataStatistics());
    OptimizedPlan op = pc.compile(plan);
    PlanJSONDumpGenerator gen = new PlanJSONDumpGenerator();
 
    return gen.getOptimizerPlanAsJSON(op);
  }
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

    LocalExecutor exec = new LocalExecutor();
    try {
      exec.start();
      PactCompiler pc = new PactCompiler(new DataStatistics());
      OptimizedPlan op = pc.compile(plan);
      PlanJSONDumpGenerator gen = new PlanJSONDumpGenerator();

      return gen.getOptimizerPlanAsJSON(op);
    } finally {
      exec.stop();
    }
  }
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

   *
   * @param plan The program plan.
   * @return The plan as a JSON object.
   */
  public static String getPlanAsJSON(Plan plan) {
    PlanJSONDumpGenerator gen = new PlanJSONDumpGenerator();
    List<DataSinkNode> sinks = PactCompiler.createPreOptimizedPlan(plan);
    return gen.getPactPlanAsJSON(sinks);
  }
View Full Code Here

Examples of org.apache.flink.compiler.plandump.PlanJSONDumpGenerator

   
    PactCompiler pc = new PactCompiler(new DataStatistics());
    OptimizedPlan op = pc.compile(p);
   
    if (printPlan) {
      System.out.println(new PlanJSONDumpGenerator().getOptimizerPlanAsJSON(op));
    }

    NepheleJobGraphGenerator jgg = new NepheleJobGraphGenerator();
    return jgg.compileJobGraph(op);
  }
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.