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.
lookup (key)
No comments:
Post a Comment