Using Hadoop MapReduce
I have a list as input:
- A
- B
- C
And I want to get the Cartesian product of the list with itself:
- A => A,f(A,A)
- A => B,f(A,B)
- A => C,f(A,C)
- B => A,f(B,A)
- B => B,f(B,B)
- B => C,f(B,C)
- C => A,f(C,A)
- C => B,f(C,B)
- C => C,f(C,C)
f() is a function that gives a value for a pair of keys.
How do I do that a in a simple manner using Hadoop MapReduce in Java?
Of course I can't hold the entire input list in memory.
Thanks!!