GitHub user srowen opened a pull request:

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

    [SPARK-3369] [CORE] [STREAMING] Java mapPartitions Iterator->Iterable is 
inconsistent with Scala's Iterator->Iterator

    Fix Java function API methods for flatMap and mapPartitions to require 
producing only an Iterator, not Iterable. Also fix DStream.flatMap to require a 
function producing TraversableOnce only, not Traversable.
    
    CC @rxin @pwendell for API change; @tdas since it also touches streaming.

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

    $ git pull https://github.com/srowen/spark SPARK-3369

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

    https://github.com/apache/spark/pull/10413.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 #10413
    
----
commit ac83f5678bf07be5e0eefa05c43e4b30b07189ec
Author: Sean Owen <[email protected]>
Date:   2015-12-21T10:40:14Z

    Fix Java function API methods for flatMap and mapPartitions to require 
producing only an Iterator, not Iterable. Also fix DStream.flatMap to require a 
function producing TraversableOnce only, not Traversable.

----


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