Re: JavaPairRDD to JavaPairRDD based on key

2014-09-10 Thread Sean Owen
So, each key-value pair gets a new value for the original key? you want mapValues(). On Wed, Sep 10, 2014 at 2:01 PM, Tom wrote: > Is it possible to generate a JavaPairRDD from a > JavaPairRDD, where I can also use the key values? I have > looked at for instance mapToPair, but this generates a ne

JavaPairRDD to JavaPairRDD based on key

2014-09-10 Thread Tom
Is it possible to generate a JavaPairRDD from a JavaPairRDD, where I can also use the key values? I have looked at for instance mapToPair, but this generates a new K/V pair based on the original value, and does not give me information about the key. I need this in the initialization phase, where I