Tuesday, 15 May 2012

apache spark - How to get a certain element of an RDD? -


If I have an RDD [(K, V)] and a key, then how do I get the element of RDD ?

I can filter RDD by key, but is there a more efficient way?

On PairRDD, we can use the lookup (key) API It gives all values ​​related to the key provided.


No comments:

Post a Comment