Help the world stop coronavirus! Stay home!

Prev Next

BigData / Apache Spark

Difference between map and flatmap transformations.

map(func) returns a new distributed dataset formed by passing each element of the source through a function func.

flatMap(func) is similar to map, except that each input item can be mapped to 0 or more output items so that func should return a Seq rather than a single item.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

TensorFlow

Comments & Discussions