I have a RDD with structures of RDD:[String A,List(Strings Bs)] I would like to map it so that I get an RDD:[String A,String B], so that each element in the List will be matched with String A. What would be the most efficient way to do this?
I am currently using flatMapValues, would this be the most efficient way? (I have huge dataset)