Unpersist

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unpersist

pradhandeep
I want to create a temporary variables in a spark code.
Can I do this?

for (i <- num)
{
val temp = ......
   {
   do something
   }
temp.unpersist()
}

Thank You
Reply | Threaded
Open this post in threaded view
|

Re: Unpersist

Akhil
like this?

var temp = ...
for (i <- num)
{
 temp = ......
   {
   do something
   }
temp.unpersist()
}

Thanks
Best Regards

On Thu, Sep 11, 2014 at 3:26 PM, Deep Pradhan <[hidden email]> wrote:
I want to create a temporary variables in a spark code.
Can I do this?

for (i <- num)
{
val temp = ......
   {
   do something
   }
temp.unpersist()
}

Thank You

Reply | Threaded
Open this post in threaded view
|

Re: Unpersist

pradhandeep
After every loop I want the temp variable to cease to exist

On Thu, Sep 11, 2014 at 4:33 PM, Akhil Das <[hidden email]> wrote:
like this?

var temp = ...
for (i <- num)
{
 temp = ......
   {
   do something
   }
temp.unpersist()
}

Thanks
Best Regards

On Thu, Sep 11, 2014 at 3:26 PM, Deep Pradhan <[hidden email]> wrote:
I want to create a temporary variables in a spark code.
Can I do this?

for (i <- num)
{
val temp = ......
   {
   do something
   }
temp.unpersist()
}

Thank You