Products
Wednesday, April 27, 2011
12:34 PM
Products
As in Pig, one useful construction is the cross product. 
For tables t1 and t2, (t1 * t2) is a new table with 
keys that are pairs of keys from t1, t2, 
values that are pairs of values. 
In other words, if k1 => v1 is in t1 and k2 => v2 is in t2, 
then [k1,k2] => [v1,v2] is in t1 * t2