diff options
author | Sean Owen <sowen@cloudera.com> | 2014-06-04 11:27:08 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2014-06-04 11:27:08 -0700 |
commit | d341b17c2a0a4fce04045e13fb4a3b0621296320 (patch) | |
tree | dc40ffa1dfa298b473d5922ffdf1d736ad933b89 /python/pyspark/mllib | |
parent | b8d25800393d0208a76813bcd94509ac24a3add5 (diff) | |
download | spark-d341b17c2a0a4fce04045e13fb4a3b0621296320.tar.gz spark-d341b17c2a0a4fce04045e13fb4a3b0621296320.tar.bz2 spark-d341b17c2a0a4fce04045e13fb4a3b0621296320.zip |
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.
Author: Sean Owen <sowen@cloudera.com>
Author: Xiangrui Meng <meng@databricks.com>
This patch had conflicts when merged, resolved by
Committer: Xiangrui Meng <meng@databricks.com>
Closes #919 from srowen/SPARK-1973 and squashes the following commits:
148cb7b [Sean Owen] Some final Java test polish, while we are at it
1fc3f3e [Xiangrui Meng] more cleaning on Java 8 tests
9ebc57f [Sean Owen] Use accumulator instead of temp files to test foreach
5efb0be [Sean Owen] Add Java randomSplit, and unit tests (including for sample)
5dcc158 [Sean Owen] Simplified Java 8 test with new language features, and fixed the name of MLB's greatest team
91a1769 [Sean Owen] Touch up minor style issues in existing Java API suite test
Diffstat (limited to 'python/pyspark/mllib')
0 files changed, 0 insertions, 0 deletions