Hi have a JavaRDDPair with 2 elements:
("TypeA", List<jsonTypeA>),
("TypeB", List<jsonTypeB>)
I need to combine the 2 pairs into 1 pair of type:
("TypeA_B", List<jsonCombinedAPlusB>)
I need to combine the 2 lists into 1 list, where each 2 jsons (1 of type A and 1 of type B) have some common field I can join on.
Consider that list of type A is significantly smaller than the other, and the join should be inner, so the result list should be as small as the list of type A.
What is the most efficient way to do that?