I am wondering whether it is possible to distinguish elements from offset time in Apache Flink sliding windows. Let me explain it in more details.
I want to take elements from eg.: 13:00 to 13:59:59. However, I also added an offset/slide so I have also elements from 12:30 so I can calculate things based on the values from previous hour, but I do not want to count them again (it was already counted during previous window). Is it possible out of the box to skip calculation of the elements from previous hour?
My stream definition:
var myStream= env.fromSource(source, watermarkStrategy, "data")
.keyBy(MyType::getKey)
.connect(otherStream)
.process(new EnrichWithMyTypeProcessFunction())
.assignTimestampsAndWatermarks(watermarkStrategyWithMyType)
.keyBy(elem -> elem.getKey())
.window(SlidingEventTimeWindows.of(Time.minutes(90), Time.minutes(60), Time.minutes(-30)))
.trigger(EventTimeTrigger.create())
.sideOutputLateData(lateDataTag)
.process(new CalculateFromHourFunction());
Thanks for any hint!