I have a custom RichCoFlatMapFunction
that uses a ValueState
member. The docs say that
the key/value interface is scoped to the key of the current input element
What if I key on connected streams like this:
val connected = streamA
.connect(streamB)
.keyBy(a=>a.foo, b=>b.bar)
.flatMap(new MyRichCoFlatMapFunction)
How are the semantics then? Is it keyed to the first, the second or the combination of the two?