Performing Aggregations - using groupByKey


Originally published at:

There are several APIs to perform aggregations By Key aggregations countByKey reduceByKey aggregateByKey groupByKey can be used for aggregations, but should be given low priority as it does not use combiner Using countByKey Using groupByKey groupByKey can be used for any aggregation It is least preferred as combiner will not be used groupByKey is generic…