See the filter() method:
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/rdd/RDD.scala#L334

Cheers

On Mon, Oct 19, 2015 at 4:27 PM, Shepherd <cheng...@huawei.com> wrote:

> Hi all, <br>
> I have a very simple question.<br>
> I have a RDD, saying r1, which contains 5 columns, with both string and
> Int.<br>
> How can I get a sub RDD, based on a rule, that the second column equals to
> a
> string (s)?<br>
>
> Thanks a lot.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Filter-RDD-tp25133.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
> For additional commands, e-mail: user-h...@spark.apache.org
>
>

Reply via email to