Package eu.stratosphere.compiler.plandump

Examples of eu.stratosphere.compiler.plandump.PlanJSONDumpGenerator


      }

      try {
        PactCompiler pc = new PactCompiler(new DataStatistics());
        OptimizedPlan op = pc.compile(plan);
        PlanJSONDumpGenerator gen = new PlanJSONDumpGenerator();
   
        return gen.getOptimizerPlanAsJSON(op);
      }
      finally {
        if (shutDownAtEnd) {
          stop();
        }
View Full Code Here


    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

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

    }
    else {
      throw new RuntimeException();
    }
   
    PlanJSONDumpGenerator jsonGen = new PlanJSONDumpGenerator();
    StringWriter string = new StringWriter(1024);
    PrintWriter pw = null;
    try {
      pw = new PrintWriter(string);
      jsonGen.dumpPactPlanAsJSON(previewPlan, pw);
    } finally {
      pw.close();
    }
    return string.toString();
  }
View Full Code Here

  public String getExecutionPlan() throws Exception {
    Plan p = createProgramPlan("unnamed job");
   
    OptimizedPlan op = this.client.getOptimizedPlan(p, getDegreeOfParallelism());
   
    PlanJSONDumpGenerator gen = new PlanJSONDumpGenerator();
    return gen.getOptimizerPlanAsJSON(op);
  }
View Full Code Here

TOP

Related Classes of eu.stratosphere.compiler.plandump.PlanJSONDumpGenerator

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.