Is the item you're looking up an Int? So you want to find which of the
Iterable[Int] elements in your RDD contains the Int you're looking for?

On Sat Dec 27 2014 at 3:26:41 PM Amit Behera <amit.bd...@gmail.com> wrote:

> Hi All,
>
> I want to check an item is present or not in a RDD of Iterable[Int] using
> scala
>
> something like in java we do :
>
> *list.contains(item)*
>
> and the statement returns true if the item is present otherwise false.
>
> Please help me to find the solution.
>
> Thanks
> Amit
>
>

Reply via email to