JavaPairRDDString, Integer to JavaPairRDDString, String based on key

2014-09-10 Thread Tom
Is it possible to generate a JavaPairRDDString, Integer from a JavaPairRDDString, String, 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

Re: JavaPairRDDString, Integer to JavaPairRDDString, String 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 thubregt...@gmail.com wrote: Is it possible to generate a JavaPairRDDString, Integer from a JavaPairRDDString, String, where I can also use the key values? I have looked at