Hi Matt,

the keyBy() on ConnectedStream has two parameters to specify the key of the left and of the right stream. Same keys end up in the same CoMapFunction/CoFlatMapFunction. If you want to group both streams on a common key, then you can use .union() instead of .connect().

I hope that helps.

Timo


Am 27/01/17 um 07:21 schrieb Matt:
Hi all,

What's the purpose of .keyBy() on ConnectedStream? How does it affect .map() and .flatMap()?

I'm not finding a way to group stream elements based on a key, something like a Window on a normal Stream, but for a ConnectedStream.

Regards,
Matt


Reply via email to