GitHub user srowen opened a pull request: https://github.com/apache/spark/pull/919
SPARK-1973. Add randomSplit to JavaRDD (with tests, and tidy Java tests) I'd like to use randomSplit through the Java API, and would like to add a convenience wrapper for this method to JavaRDD. This is fairly trivial. (In fact, is the intent that JavaRDD not wrap every RDD method? and that sometimes users should just use JavaRDD.wrapRDD()?) Along the way, I added tests for it, and also touched up the Java API test style and behavior. This is maybe the more useful part of this small change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/srowen/spark SPARK-1973 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/919.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #919 ---- commit df9cdb9d9c42d88022a092eea5a3224575086256 Author: Sean Owen <so...@cloudera.com> Date: 2014-05-11T16:42:16Z Touch up minor style issues in existing Java API suite test commit be57987215dae92180ca9f40068e045377586c14 Author: Sean Owen <so...@cloudera.com> Date: 2014-05-13T12:41:42Z Simplified Java 8 test with new language features, and fixed the name of MLB's greatest team commit e0f3b543e3cb03abeccbb6e4e69cfb42d922fdfb Author: Sean Owen <so...@cloudera.com> Date: 2014-05-13T14:06:17Z Add Java randomSplit, and unit tests (including for sample) ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---