1:24 PM
To: 'Holden Karau'; 'Yasemin Kaya'
Cc: user@spark.apache.org
Subject: RE: swap tuple
Where is the “Tuple” supposed to be in String, String - you can refer to a
“Tuple” if it was e.g. String, Tuple2String, String
From: holden.ka...@gmail.com [mailto:holden.ka...@gmail.com] On Behalf
@spark.apache.org
Subject: Re: swap tuple
Can you paste your code? transformations return a new RDD rather than modifying
an existing one, so if you were to swap the values of the tuple using a map you
would get back a new RDD and then you would want to try and print this new RDD
instead of the original one
[evo.efti...@isecc.com]
*Sent:* Thursday, May 14, 2015 1:24 PM
*To:* 'Holden Karau'; 'Yasemin Kaya'
*Cc:* user@spark.apache.org
*Subject:* RE: swap tuple
Where is the “Tuple” supposed to be in String, String - you can
refer to a “Tuple” if it was e.g. String, Tuple2String, String
*From
, Yasemin Kaya godo...@gmail.com wrote:
Hi,
I have *JavaPairRDDString, String *and I want to *swap tuple._1() to
tuple._2()*. I use *tuple.swap() *but it can't be changed JavaPairRDD in
real. When I print JavaPairRDD, the values are same.
Anyone can help me for that?
Thank you.
Have nice day
Hi,
I have *JavaPairRDDString, String *and I want to *swap tuple._1() to
tuple._2()*. I use *tuple.swap() *but it can't be changed JavaPairRDD in
real. When I print JavaPairRDD, the values are same.
Anyone can help me for that?
Thank you.
Have nice day.
yasemin
--
hiç ender hiç