Feels like a silly questions,

But what if I wanted to apply a map to each element in a RDD, but instead of
replacing it, I wanted to add new columns of the manipulate value

I.e.

res0: Array[String] = Array(1 2, 1 3, 1 4, 2 1, 3 1, 4 1)



Becomes



res0: Array[String] = Array(1 2 2 4, 1 3 1 6, 1 4 1 8, 2 1 4 2, 3 1 6 2, 4 1
8 2)



Cheers

- Ian


Reply via email to