Add additional data to the accumulator value.
Add additional data to the accumulator value.
the current value of the accumulator
the data to be added to the accumulator
the new value of the accumulator
merge two accumulated values together
merge two accumulated values together
one set of accumulated data
another set of accumulated data
both data sets merged together
A datatype that can be accumulated, ie. has a commutative & associative +.
You must define how to add data, and how to merge two of these together. For some datatypes, these might be the same operation (eg., a counter). In that case, you might want to use AccumulatorParam. They won't always be the same, though -- eg., imagine you are accumulating a set. You will add items to the set, and you will union two sets together.
the full accumulated data
partial data that can be added in