A co-group operation that has KeySelectors defined for the first input.
A co-group operation that has KeySelectors defined for the first input.
You need to specify a KeySelector for the second input using equalTo() before you can proceed with specifying a WindowAssigner using EqualTo.window().
Type of the key. This must be the same for both inputs
Specifies a KeySelector for elements from the first input.
CoGroupedStreams
represents two DataStreams that have been co-grouped. A streaming co-group operation is evaluated over elements in a window.To finalize the co-group operation you also need to specify a KeySelector for both the first and second input and a WindowAssigner
Note: Right now, the groups are being built in memory so you need to ensure that they don't get too big. Otherwise the JVM might crash.
Example: