Java Examples for eu.stratosphere.streaming.api.JobGraphBuilder
The following java examples will help you to understand the usage of eu.stratosphere.streaming.api.JobGraphBuilder. These source code samples are taken from different open source projects.
Example 1
Project: strato-workshop-master File: IncrementalLearningSkeleton.java View source code |
private static JobGraph getJobGraph() { JobGraphBuilder graphBuilder = new JobGraphBuilder("IncrementalLearning", FaultToleranceType.NONE); graphBuilder.setSource("NewData", new NewDataSource(), 1, 1); graphBuilder.setSource("TrainingData", new TrainingDataSource(), 1, 1); graphBuilder.setTask("PartialModelBuilder", new PartialModelBuilder(), 1, 1); graphBuilder.setTask("Predictor", new Predictor(), 1, 1); graphBuilder.setSink("Sink", new Sink(), 1, 1); graphBuilder.shuffleConnect("TrainingData", "PartialModelBuilder"); graphBuilder.shuffleConnect("NewData", "Predictor"); graphBuilder.broadcastConnect("PartialModelBuilder", "Predictor"); graphBuilder.shuffleConnect("Predictor", "Sink"); return graphBuilder.getJobGraph(); }