Package eu.stratosphere.api.common

Examples of eu.stratosphere.api.common.Plan


      return jsonGen.getOptimizerPlanAsJSON(op);
    }
   
   
    private OptimizedPlan compileProgram(String jobName) {
      Plan p = createProgramPlan(jobName);
     
      PactCompiler pc = new PactCompiler(new DataStatistics());
      return pc.compile(p);
    }
View Full Code Here


    return jobExecutionResult;
  }
 
 
  protected JobGraph getJobGraph() throws Exception {
    Plan p = getTestJob();
    if (p == null) {
      Assert.fail("Error: Cannot obtain Pact plan. Did the thest forget to override either 'getPactPlan()' or 'getJobGraph()' ?");
    }
   
    PactCompiler pc = new PactCompiler(new DataStatistics());
View Full Code Here

  }
 
 
  @Override
  public JobExecutionResult execute(String jobName) throws Exception {
    Plan p = createProgramPlan(jobName);
   
    PlanExecutor executor = PlanExecutor.createRemoteExecutor(host, port, jarFiles);
    return executor.executePlan(p);
  }
View Full Code Here

    return executor.executePlan(p);
  }
 
  @Override
  public String getExecutionPlan() throws Exception {
    Plan p = createProgramPlan("unnamed");
    p.setDefaultParallelism(getDegreeOfParallelism());
    registerCachedFilesWithPlan(p);
   
    PlanExecutor executor = PlanExecutor.createRemoteExecutor(host, port, jarFiles);
    return executor.getOptimizerPlanAsJSON(p);
  }
View Full Code Here

    FileDataSink output = new FileDataSink(new ContractITCaseOutputFormat(), resultPath);
    output.setDegreeOfParallelism(1);
    output.setInput(mp2);

    return new Plan(output);
  }
View Full Code Here

    output.setInput(testCoGrouper);
    testCoGrouper.setFirstInput(input_left);
    testCoGrouper.setSecondInput(input_right);

    return new Plan(output);
  }
View Full Code Here

      .name("Identity Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
   
   
    Plan p = new Plan(sink);
    p.setDefaultParallelism(4);
   
    runAndCancelJob(p, 5 * 1000, 10 * 1000);
  }
 
View Full Code Here

      .name("Delay Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
   
   
    Plan p = new Plan(sink);
    p.setDefaultParallelism(4);
   
    runAndCancelJob(p, 5 * 1000, 10 * 1000);
  }
 
View Full Code Here

      .name("Long Cancelling Time Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
   
   
    Plan p = new Plan(sink);
    p.setDefaultParallelism(4);
   
    runAndCancelJob(p, 10 * 1000, 10 * 1000);
  }
 
View Full Code Here

      .name("Stuck-In-Open Mapper")
      .build();
    GenericDataSink sink = new GenericDataSink(new DiscardingOutputFormat(), mapper, "Sink");
   
   
    Plan p = new Plan(sink);
    p.setDefaultParallelism(4);
   
    runAndCancelJob(p, 10 * 1000, 10 * 1000);
  }
 
View Full Code Here

TOP

Related Classes of eu.stratosphere.api.common.Plan

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.