Compute average revenue

Originally published at: http://www.itversity.com/topic/compute-average-revenue-scala/

Introduction As part of this topic we will see different aggregate functions Click here to understand functionality of combiner Click here to understand difference between reduceByKey and aggregateByKey groupByKey – not intended for aggressive aggregations reduceByKey – when both combiner logic and reducer logic are same aggregateByKey – when combiner logic and reducer logic are different…