Examples of PlanJSONDumpGenerator


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

     
      Client client = new Client(mockJmAddress, new Configuration(), getClass().getClassLoader());
      OptimizedPlan op = client.getOptimizedPlan(prg, -1);
      assertNotNull(op);
     
      PlanJSONDumpGenerator dumper = new PlanJSONDumpGenerator();
      assertNotNull(dumper.getOptimizerPlanAsJSON(op));
     
      // test HTML escaping
      PlanJSONDumpGenerator dumper2 = new PlanJSONDumpGenerator();
      dumper2.setEncodeForHTML(true);
      String htmlEscaped = dumper2.getOptimizerPlanAsJSON(op);
     
      assertEquals(-1, htmlEscaped.indexOf('\\'));
    }
    catch (Exception e) {
      e.printStackTrace();
View Full Code Here

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

        // dump the job to a JSON file
        String planName = uid + ".json";
        File jsonFile = new File(this.planDumpDirectory, planName);
       
        PlanJSONDumpGenerator jsonGen = new PlanJSONDumpGenerator();
        jsonGen.setEncodeForHTML(true);
        jsonGen.dumpOptimizerPlanAsJSON(optPlan, jsonFile);

        // submit the job only, if it should not be suspended
        if (!suspend) {
          try {
            client.run(program, optPlan, false);
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.