Package datafu.pig.bags

Class Summary
AliasBagFields Re-alias the fields inside of a bag.
AppendToBag Appends a tuple to a bag.
BagConcat Concatenates the tuples from a set of bags, producing a single bag containing all tuples.
BagSplit Splits a bag of tuples into a bag of bags, where the inner bags collectively contain the tuples from the original bag.
DistinctBy Get distinct elements in a bag by a given set of field positions.
Enumerate Enumerate through a bag, replacing each (elem) with (elem, idx).
FirstTupleFromBag  
NullToEmptyBag UDF that, if the input is null, returns an empty bag; otherwise, returns the input bag unchanged.
PrependToBag Prepends a tuple to a bag.
UnorderedPairs Generates pairs of all items in a bag.
 



Matthew Hayes, Sam Shah