title: How to filter in rdd containing array of tuples?
body: <p>I have a data like this Array of Array of tuple(Int,Int,String).</p>
  
  <pre><code>val data = Array(Array((1,200,"vimal"),(2,12,"amar"),(1,120,"vimal"),  
     (2,120,"kamal"),(1,120,"jay")),Array((1,200,"vimal"),(1,120,"vimal"),
     (2,120,"kamal"),(1,120,"jay")))
  val dist = sc.parallelize(data)
  </code></pre>
  
  <p>I would like to filter the tuples containing 2 as the first integer.</p>
  
  <p>The result should look like </p>
  
  <pre><code>(2,12,"amar"),(2,120,"kamal"),(2,120,"kamal")
  </code></pre>