in hourly-tips/src/main/java/org/apache/flink/training/exercises/hourlytips/HourlyTipsExercise.java [70:92]
public JobExecutionResult execute() throws Exception {
// set up streaming execution environment
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
// start the data generator
DataStream<TaxiFare> fares = env.addSource(source);
// replace this with your solution
if (true) {
throw new MissingSolutionException();
}
// the results should be sent to the sink that was passed in
// (otherwise the tests won't work)
// you can end the pipeline with something like this:
// DataStream<Tuple3<Long, Long, Float>> hourlyMax = ...
// hourlyMax.addSink(sink);
// execute the pipeline and return the result
return env.execute("Hourly Tips");
}