This should be sent to the user mailing list, I think.

It depends what you want to do with the RDD, so yes you could throw around
(String, HashMap<String,List<String>>) tuples or perhaps you'd like to be
able to groupByKey, reduceByKey on the key and sub-key as a composite in
which case JavaPairRDD<Tuple2<String,String>, List<String>> might be more
appropriate. Not really clear what you are asking.


On Wed, 19 Aug 2015 at 17:15 Ratika Prasad <rpra...@couponsinc.com> wrote:

> Hi,
>
>
>
> We have a need where we need the RDD with the following format
> JavaPairRDD<String,HashMap<String,List<String>>>, mostly RDD with a Key and
> Subkey kind of a structure, how is that doable in Spark ?
>
>
>
> Thanks
>
> R
>

Reply via email to