Right now I have a RDD in the following format
( (int, int), int )
and I'm trying to convert it into 3 key-value pairs like (int, 1).
I can do this by using 3 map functions then join them together, but it's definitely not the best way to implement it,
also by using case I can generate a list of ((int, 1), (int, 1), (int, 1)), but how can I generate a List of (int, 1)?