O'Reilly logo

Apache Spark 2.x for Java Developers by Sumit Kumar, Sourav Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with terminal operations

A couple of terminal operations which require some attention in detail are as follows:

  • forEach(): One of the most important paradigms where functional programming differs from imperative programming is the way it is focused on what to implement rather than how to implement. This cannot be explained any better than the new foreach() method of Java 8. Previous implementation of iteration, however unique each may be, focused on how the iteration will take place and each time it was different for the list, HashMap, array, set, and so on. This way of iterating over elements was also called external iteration, which inherently not only processed data serially, but also followed the storage and retrieval order of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required