Apologies I misinterpreted.... could you post two use cases? Kr On 24 Jul 2016 3:41 pm, "janardhan shetty" <janardhan...@gmail.com> wrote:
> Marco, > > Thanks for the response. It is indexed order and not ascending or > descending order. > On Jul 24, 2016 7:37 AM, "Marco Mistroni" <mmistr...@gmail.com> wrote: > >> Use map values to transform to an rdd where values are sorted? >> Hth >> >> On 24 Jul 2016 6:23 am, "janardhan shetty" <janardhan...@gmail.com> >> wrote: >> >>> I have a key,value pair rdd where value is an array of Ints. I need to >>> maintain the order of the value in order to execute downstream >>> modifications. How do we maintain the order of values? >>> Ex: >>> rdd = (id1,[5,2,3,15], >>> Id2,[9,4,2,5]....) >>> >>> Followup question how do we compare between one element in rdd with all >>> other elements ? >>> >>