Re: Spark AccumulatorParam generic

2014-10-01 Thread Debasish Das
Can't you extend a class in place of object which can be generic ? class GenericAccumulator[B] extends AccumulatorParam[Seq[B]] { } On Wed, Oct 1, 2014 at 3:38 AM, Johan Stenberg wrote: > Just realized that, of course, objects can't be generic, but how do I > create a generic AccumulatorParam?

Re: Spark AccumulatorParam generic

2014-10-01 Thread Johan Stenberg
Just realized that, of course, objects can't be generic, but how do I create a generic AccumulatorParam? 2014-10-01 12:33 GMT+02:00 Johan Stenberg : > Hi, > > I have a problem with using accumulators in Spark. As seen on the Spark > website, if you want custom accumulators you can simply extend (

Spark AccumulatorParam generic

2014-10-01 Thread Johan Stenberg
Hi, I have a problem with using accumulators in Spark. As seen on the Spark website, if you want custom accumulators you can simply extend (with an object) the AccumulatorParam trait. The problem is that I need to make that object generic, such as this: object SeqAccumulatorParam[B] extends A