Chapter 9. Processing Massive Datasets with Parallel Streams - The Map and Collect Model
In Chapter 8, Processing Massive Datasets with Parallel Streams - The Map and Reduce Model, we introduced the concept of streams . A Stream
is a sequence of elements that can be processed in a parallel or sequential way. In this chapter, you will learn how to work with streams with the following topics:
- The collect() method
- The first example - searching data without indexing
- The second example - a recommendation system
- The third example - common contacts in a social network