Dear Spark Dev Community,

I am wondering if there is already a function to solve my problem. If not,
then should I work on this?

Say you just want to check if a word exists in a huge text file. I could
not find better ways than those mentioned here
<http://www.knowbigdata.com/blog/interview-questions-apache-spark-part-2#q6>
.

So, I was proposing if we have a function called *exists *in RDD with the
following signature:

#returns the true if n elements exist which qualify our criteria.
#qualifying function would receive the element and its index and return
true or false.
def *exists*(qualifying_function, n):
     ....


Regards,
Sandeep Giri,
+1 347 781 4573 (US)
+91-953-899-8962 (IN)

www.KnowBigData.com. <http://KnowBigData.com.>
Phone: +1-253-397-1945 (Office)

[image: linkedin icon] <https://linkedin.com/company/knowbigdata> [image:
other site icon] <http://knowbigdata.com>  [image: facebook icon]
<https://facebook.com/knowbigdata> [image: twitter icon]
<https://twitter.com/IKnowBigData> <https://twitter.com/IKnowBigData>

Reply via email to