O'Reilly logo
  • CHIA-MING LIN thinks this is interesting:

(acc1: (Int, Int), acc2: (Int, Int)) => (acc1._1 + acc2._1, acc1._2 +

From

Cover of Learning Spark

Note

mergeCombiners: merge each accumulator with same key on different partitions.