linkedin/datafu — pull request #26 by william-g-vaughan (2013-01-24 23:08:22+00:00)
Title: Add UDFs for weighted sampling of a bag and counting elements of a bag

This commit includes two udfs with corresponding tests.
*WeightedSample: This UDF will produce a weighted sampling (reordering) of a bag using either positional order or a scoring column
*CountEach: The UDF counts the number of times that a tuple occurs in a bag.