MAPREDUCE-5157. Bring back old sampler related code so that we can support binary compatibility with hadoop-1 sorter example. Contributed by Zhijie Shen. svn merge --ignore-ancestry -c 1480474 ../../trunk/