spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Gopalakrishnan <>
Subject Extracting RDD of values per key from PairRDD
Date Tue, 03 Nov 2015 10:50:00 GMT

I have a use case where I need to get *an RDD of values per key *from
a PairRDD. Below is my PairRDD.

JavaPairRDD<Double, Iterable<Vector>> classifiedSampleRdd =

I want a separate RDD for the vectors per double entry in the key. *I
would now want a RDD of values for each key.* Which will be

JavaRDD<Vector> = classifiedSampleRdd. ???

Can someone tell me how I can extract that ?


View raw message