Spark's `ClosureCleaner` utility seems to check whether a function is an anonymous function: ClosureCleaner.scala on line 49 If not, it warns the user.
However, I'm using some class based functions. Something along the lines of:
This works just fine. I can't really see that the warning is actually useful in this case. I appreciate checking for common 'mistakes', but in my case a user might be alarmed unnecessarily.
Anything that can be done about this? Anything I can do?