Yeah, should be right
--
Nan Zhu
On Wednesday, April 9, 2014 at 8:54 PM, wxhsdp wrote:
> thank you, it works
> after my operation over p, return p.toIterator, because mapPartitions has
> iterator return type, is that right?
> rdd.mapPartitions{D => {val p = D.toArray; ...; p.toIterator}}
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Only-TraversableOnce-tp3873p4043.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com
> (http://Nabble.com).
>
>