Hi guys,

I want to keep track of the running median of a keyed data stream. I was 
considering to apply a RichMapFunction to the stream and store in a ValueState 
object two heaps (PriorityQueue) in order to find the running median. However, 
I am not really sure if this is the best approach performance-wise. Do you have 
some suggestions for me or have you ever done something similar?

Thank you so much!

Best,


Gabriele

Reply via email to