GitHub user BryanCutler opened a pull request:

    https://github.com/apache/spark/pull/9488

    [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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/BryanCutler/spark 
foreachRDD-VoidFunction-SPARK-4557

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9488.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 #9488
    
----
commit 80707b14f9ba577ce883187aca648424dd4c61a5
Author: Bryan Cutler <[email protected]>
Date:   2015-11-05T02:19:31Z

    [SPARK-4557] Changed Streaming foreachRDD to use VoidFunction to allow a 
more consice declaration.  Added VoidFunction2 and unit test for support.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to