I am trying to join two pairRDDs as show below and whereas
lat1 : K,V -> k-integer , V- Double lat2 : K,V -> k-integer , V- Double
JavaPairRDD<Integer,Tuple2<Double,Double>> latlong = lat.join(long);
Am assuming the new RDD will be K,[V1,V2] and i want to display the new RDD
And also if i want to do operations based on value, what is the way to perform
Please suggest in Spark-Java Api
P.s: I have seen many answers are in scala but my requirement is to implement in JAVa