Adds v to the accumulator, i.e.
Adds v to the accumulator, i.e. increment sum by v and count by 1.
2.0.0
Adds v to the accumulator, i.e.
Adds v to the accumulator, i.e. increment sum by v and count by 1.
2.0.0
Returns the average of elements added to the accumulator.
Returns the average of elements added to the accumulator.
2.0.0
Creates a new copy of this accumulator.
Creates a new copy of this accumulator.
Creates a new copy of this accumulator, which is zero value.
Creates a new copy of this accumulator, which is zero value. i.e. call isZero
on the copy
must return true.
Returns the number of elements added to the accumulator.
Returns the number of elements added to the accumulator.
2.0.0
Returns the id of this accumulator, can only be called after registration.
Returns the id of this accumulator, can only be called after registration.
Returns true if this accumulator has been registered.
Returns true if this accumulator has been registered. Note that all accumulators must be registered before use, or it will throw exception.
Adds v to the accumulator, i.e.
Adds v to the accumulator, i.e. increment sum by v and count by 1.
2.0.0
Merges another same-type accumulator into this one and update its state, i.e.
Merges another same-type accumulator into this one and update its state, i.e. this should be merge-in-place.
Returns the name of this accumulator, can only be called after registration.
Returns the name of this accumulator, can only be called after registration.
Resets this accumulator, which is zero value.
Resets this accumulator, which is zero value. i.e. call isZero
must
return true.
Returns the sum of elements added to the accumulator.
Returns the sum of elements added to the accumulator.
2.0.0
Defines the current value of this accumulator
Defines the current value of this accumulator
An accumulator for computing sum, count, and averages for 64-bit integers.
2.0.0