Skip to content
Snippets Groups Projects
Commit 649e9d0f authored by Sean Owen's avatar Sean Owen
Browse files

[SPARK-3369][CORE][STREAMING] Java mapPartitions Iterator->Iterable is...

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

Author: Sean Owen <sowen@cloudera.com>

Closes #10413 from srowen/SPARK-3369.
parent 5936bf9f
No related branches found
No related tags found
No related merge requests found
Showing
with 76 additions and 70 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment