So what I have is RDD[(String, Int)]
and I need to convert it into Map[String, RDD[Int]]
Ex.
My input looks like this:
RDD[("a", 1), ("a", 2), ("b", 1), ("c", 3)]
And the output I'm trying to get is:
Map["a" -> RDD[1, 2], "b" -> RDD[1], "c" -> RDD[3]]
Thanks in advance!