Apache Spark User List - mapToPair vs flatMapToPair vs flatMap function usage.
The map and flatMap methods have a similar purpose, but map is 1 to 1, while flatMap is 1 to 0-N (outputting 0 is similar to a filter, except of course it could be outputting a different type).
Read full article from Apache Spark User List - mapToPair vs flatMapToPair vs flatMap function usage.
No comments:
Post a Comment