Hi Guys,
Are scala lazy values instantiated once per executor, or once per partition? 
For example, if I have:

object Something = 
    val lazy context = create()

    def foo(item) = context.doSomething(item)

and I do

someRdd.foreach(Something.foo)

then will context get instantiated once per executor, or once per partition?

Thanks,
Ashic.

                                          

Reply via email to