Package eu.stratosphere.api.common

Examples of eu.stratosphere.api.common.Plan


    iteration.setNextPartialSolution(sumReduce);

    @SuppressWarnings("unchecked")
    FileDataSink finalResult = new FileDataSink(new CsvOutputFormat("\n"" ", StringValue.class), output, iteration, "Output");

    Plan plan = new Plan(finalResult, "Iteration with AllReducer (keyless Reducer)");
    plan.setDefaultParallelism(numSubTasks);
    return plan;
  }
View Full Code Here


      .fieldDelimiter(' ')
      .field(LongValue.class, 0)
      .field(DoubleValue.class, 1);
   
    // return the PACT plan
    Plan plan = new Plan(result, "Delta PageRank");
    plan.setDefaultParallelism(numSubTasks);
    return plan;
   
  }
View Full Code Here

      .recordDelimiter('\n')
      .fieldDelimiter(' ')
      .field(StringValue.class, 0)
      .field(IntValue.class, 1);

    Plan plan = new Plan(out, "Distributed Cache");
    plan.setDefaultParallelism(numSubTasks);
    return plan;
  }
View Full Code Here

    resultPath = getTempDirPath("result");
  }

  @Override
  protected Plan getTestJob() {
    Plan plan =  getPlan(1 , textPath, resultPath);
    try {
      plan.registerCachedFile(cachePath, "cache_test");
    } catch (IOException ex) {
      throw new RuntimeException(ex);
    }   
    return plan;
  }
View Full Code Here

    // create DataSinkContract for writing the new cluster positions
    FileDataSink newClusterPoints = new FileDataSink(new PointOutFormat(), output, recomputeClusterCenter, "New Center Positions");

    // return the plan
    Plan plan = new Plan(newClusterPoints, "KMeans Iteration");
    plan.setDefaultParallelism(numSubTasks);
    return plan;
  }
View Full Code Here

    iteration.setMaximumNumberOfIterations(numIterations);
    iteration.getAggregators().registerAggregationConvergenceCriterion(DotProductCoGroup.AGGREGATOR_NAME, PageRankStatsAggregator.class, DiffL1NormConvergenceCriterion.class);
   
    FileDataSink out = new FileDataSink(new PageWithRankOutFormat(), outputPath, iteration, "Final Ranks");

    Plan p = new Plan(out, "Dangling PageRank");
    p.setDefaultParallelism(dop);
    return p;
  }
View Full Code Here

        .recordDelimiter('\n')
        .fieldDelimiter(' ')
        .field(StringValue.class, 0)
        .field(IntValue.class, 1);

      Plan plan = new Plan(sink, "WordCount Union Reduce");
      plan.setDefaultParallelism(numSubtasks);

      return plan;
    }
View Full Code Here

      .field(LongValue.class, 0)
      .field(IntValue.class, 1)
      .field(DoubleValue.class, 2);
   
    // assemble the PACT plan
    Plan plan = new Plan(result, "TPCH Q3");
    plan.setDefaultParallelism(numSubtasks);
    return plan;
  }
View Full Code Here

  @Override
  protected Plan getTestJob() {
    LineRank lr = new LineRank();
   
    Plan plan = lr.getScalaPlan(
      config.getInteger("NumSubtasks", 1),
      sourcesPath,
      targetsPath,
      9,
      resultPath);
View Full Code Here

   
    iteration.setTerminationCriterion(termination);
   
    FileDataSink out = new FileDataSink(new PageWithRankOutFormat(), outputPath, iteration, "Final Ranks");

    Plan p = new Plan(out, "Simple PageRank");
    p.setDefaultParallelism(dop);
    return p;
  }
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.