val stream:DataStream[String] = env
.addSource(new FlinkKafkaConsumer08[String]("topic_name", new SimpleStringSchema, prop))
val event:DataStream[SomeEventObj] = stream.map(MyMapFunction)
val tenMinute:DataStream[AggEvents] = ridesByDeviceIdStream.timeWindowAll(Time.of(10, TimeUnit.MINUTES).trigger
(ContinuousProcessingTimeTrigger.of(Time.minutes(1))).map(MyMapFunction1)
val oneHour = tenMinute.keyBy(_.mykey).TumblingEventTimeWindows.of(Time.minutes(60))).trigger (MyTriggerFunction)
Above is pseduo code, may have some syntax errors but is should do what you are looking for. There is dependency on the
tenminute window and one hour window function, so one will execute after the other.