August 2017
Beginner to intermediate
284 pages
6h 51m
English
The groupBy operation doesn't involve any repartitioning. The groupBy operation converts the input stream into a grouped stream. The main function of the groupBy operation is to modify the behavior of the subsequent aggregate function. The following diagram shows how the groupBy operation groups the tuples of a single partition:

The behavior of groupBy is dependent on a position where it is used. The following behavior is possible:
Read now
Unlock full access