apache/incubator-spark — pull request #276 by shivaram (2013-12-18 19:43:40+00:00)
Title: Add collectPartition to JavaRDD interface.

This interface is useful for implementing `take` from other language frontends where the data is serialized. Also remove `takePartition` from PythonRDD and use `collectPartition` in rdd.py.

Thanks @concretevitamin for the original change and tests.