I have two DStreams. Let A:DStream[X]
and B:DStream[Y]
.
I want to get the cartesian product of them, in other words, a new C:DStream[(X, Y)]
containing all the pairs of X
and Y
values.
I know there is a cartesian
function for RDDs. I was only able to find this similar question but it's in Java and so does not answer my question.