If we define an Utils object:
object Utils {
def func1 = {..}
def func2 = {..}
}
And then in a RDD we refer to one of the function:
rdd.map{r => Utils.func1(r)}
Will Utils.func2 also get serialized or not?
Thanks,
Yitong
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Will-Spark-serialize-an-entire-Object-or-just-the-method-referred-in-an-object-tp21566.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]