mesos/spark — Issue #93: Add a version of sample() that returns a fixed number of elements
Author: mateiz
Created: 2011-11-17 21:57:28+00:00
State: open

Right now you can only sample an RDD by passing a fraction of elements to preserve. It would be nice to have a way to just pick exactly K elements out of it and return it as an array. This can be called collectSample().