Hi all,
imagine I have a datastream containing sensor readings. The readings arrive in order (w.r.g to the event time).
I would like to process the values of the sensors and do some processing, e.g. I would like to do a kind of integration (length of distinances in time times difference in the readings).
How would I achieve that? Would I do a sliding window with two elements repeating every element, or would I write a stateful map function which internally memorize the previous
sensor readings? (If the later, how would I do that?
Thanks,
Dieter