thank you for your help! let me have a try

Nan Zhu wrote
> If that’s the case, I think mapPartition is what you need, but it seems
> that you have to load the partition into the memory as whole by toArray
> 
> rdd.mapPartition{D => {val p = D.toArray; ...}}  
> 
> --  
> Nan Zhu
> 
> 
> 
> On Tuesday, April 8, 2014 at 8:40 AM, wxhsdp wrote:
> 
>> yes, how can i do this conveniently? i can use filter, but there will be
>> so
>> many RDDs and it's not concise
>>  
>>  
>>  
>> --
>> View this message in context:
>> http://apache-spark-user-list.1001560.n3.nabble.com/Only-TraversableOnce-tp3873p3875.html
>> Sent from the Apache Spark User List mailing list archive at Nabble.com
>> (http://Nabble.com).
>>  
>>





--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Only-TraversableOnce-tp3873p3877.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to