def __getstate__(self): d = RDD.__getstate__(self) del d['func'] return d, dump_func(self.func)
def __getstate__(self): d = dict(self.__dict__) del d['func'] return d, dump_func(self.func)
def __getstate__(self): return dump_func(self.addInPlace), self.zero
def __getstate__(self): return (dump_func(self.createCombiner), dump_func(self.mergeValue), dump_func(self.mergeCombiners))