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 <pradhandeep1...@gmail.com>
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 via email to