org.hammerlab.magic.accumulables
Allows for assembling a histogram using a Spark Accumulable.
When we put (k, v2) into an accumulator that already contains (k, v1), the result will be a HashMap containing (k, v1 + v2).
Combine two accumulators.
Combine two accumulators. Adds the values in each hash map.
This method should modify and return the first value.
Zero value for the accumulator: the empty hash map.
Allows for assembling a histogram using a Spark Accumulable.
When we put (k, v2) into an accumulator that already contains (k, v1), the result will be a HashMap containing (k, v1 + v2).