spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Dang <nam...@gmail.com>
Subject Re: Combine key-value pair in spark java
Date Wed, 30 Sep 2015 11:01:09 GMT
You should be able to use a simple mapping:

rdd.map(tuple -> tuple._1() + tuple._2())

-------
Regards,
Andy (Nam) Dang

On Wed, Sep 30, 2015 at 10:34 AM, Ramkumar V <ramkumar.cs31@gmail.com>
wrote:

> Hi,
>
> I have key value pair of JavaRDD (JavaPairRDD<String, String> rdd) but i
> want to concatenate into one RDD String (JavaRDD<String> result ).
>
> How can i do that ? What i have to use (map,flatmap)? can anyone please
> give me the syntax for this in java ?
>
> *Thanks*,
> <https://in.linkedin.com/in/ramkumarcs31>
>
>

Mime
View raw message