diff options
author | Bryan Cutler <bjcutler@us.ibm.com> | 2015-11-18 12:09:54 -0800 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2015-11-18 12:09:54 -0800 |
commit | 31921e0f0bd559d042148d1ea32f865fb3068f38 (patch) | |
tree | 9b255bcbce9e85e4aa5b473eee10d7ddd060a45c /docs/running-on-mesos.md | |
parent | 94624eacb0fdbbe210894151a956f8150cdf527e (diff) | |
download | spark-31921e0f0bd559d042148d1ea32f865fb3068f38.tar.gz spark-31921e0f0bd559d042148d1ea32f865fb3068f38.tar.bz2 spark-31921e0f0bd559d042148d1ea32f865fb3068f38.zip |
[SPARK-4557][STREAMING] Spark Streaming foreachRDD Java API method should accept a VoidFunction<...>
Currently streaming foreachRDD Java API uses a function prototype requiring a return value of null. This PR deprecates the old method and uses VoidFunction to allow for more concise declaration. Also added VoidFunction2 to Java API in order to use in Streaming methods. Unit test is added for using foreachRDD with VoidFunction, and changes have been tested with Java 7 and Java 8 using lambdas.
Author: Bryan Cutler <bjcutler@us.ibm.com>
Closes #9488 from BryanCutler/foreachRDD-VoidFunction-SPARK-4557.
Diffstat (limited to 'docs/running-on-mesos.md')
0 files changed, 0 insertions, 0 deletions