Re: RDD of Iterable[String]

2015-06-15 Thread nir
Have you found answer to this? I am also looking for exact same solution. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/RDD-of-Iterable-String-tp15016p23329.html Sent from the Apache Spark User List mailing list archive at Nabble.com

Re: RDD of Iterable[String]

2014-09-25 Thread Liquan Pei
elements in iterable[String] >>>val iter:Iterator[String] = x.iterator >>> while(iter.hasNext) { >>> iter.next() >>>} >>> } >>> >>> Hope this helps! >>> >>> Liquan >>> >>> On Wed, Se

Re: RDD of Iterable[String]

2014-09-24 Thread Liquan Pei
ing] x.map(...) // Process elements in iterable[String] val iter:Iterator[String] = x.iterator while(iter.hasNext) { iter.next() } } Hope this helps! Liquan On Wed, Sep 24, 2014 at 8:21 AM, Deep Pradhan wrote: > Can we iterate over RDD of Iterable[String]? How do we d

RDD of Iterable[String]

2014-09-24 Thread Deep Pradhan
Can we iterate over RDD of Iterable[String]? How do we do that? Because the entire Iterable[String] seems to be a single element in the RDD. Thank You