You may use groupByKey in this case. On Aug 7, 2014, at 9:18 PM, Konstantin Kudryavtsev <kudryavtsev.konstan...@gmail.com> wrote:
> Hi there, > > I'm interested if it is possible to get the same behavior as for reduce > function from MR framework. I mean for each key K get list of associated > values List<V>. > > There is function reduceByKey that works only with separate V from list. Is > it exist any way to get list? Because I have to sort it in particular way and > apply some business logic. > > Thank you in advance, > Konstantin Kudryavtsev --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org