apache/spark — pull request #1025 by dorx (2014-06-09 21:06:47+00:00)
Title: [SPARK-2082] stratified sampling in PairRDDFunctions that guarantees exact sample size

Implemented stratified sampling that guarantees exact sample size using ScaRSR with two passes over the RDD for sampling without replacement and three passes for sampling with replacement.