public class GrowableAccumulableParam<R,T> extends Object implements AccumulableParam<R,T>
| Constructor and Description |
|---|
GrowableAccumulableParam(scala.Function1<R,scala.collection.generic.Growable<T>> evidence$1,
scala.reflect.ClassTag<R> evidence$2) |
| Modifier and Type | Method and Description |
|---|---|
R |
addAccumulator(R growable,
T elem)
Add additional data to the accumulator value.
|
R |
addInPlace(R t1,
R t2)
Merge two accumulated values together.
|
R |
zero(R initialValue)
Return the "zero" (identity) value for an accumulator type, given its initial value.
|
public R addAccumulator(R growable, T elem)
AccumulableParamr
for efficiency (to avoid allocating objects).
addAccumulator in interface AccumulableParam<R,T>growable - the current value of the accumulatorelem - the data to be added to the accumulatorpublic R addInPlace(R t1, R t2)
AccumulableParamaddInPlace in interface AccumulableParam<R,T>t1 - one set of accumulated datat2 - another set of accumulated datapublic R zero(R initialValue)
AccumulableParamzero in interface AccumulableParam<R,T>