hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aayush Garg" <aayush.g...@gmail.com>
Subject Sorting the OutputCollector
Date Tue, 08 Apr 2008 19:47:14 GMT
Hi,

I have implemented Key and value pairs in the following way:

Key (Text class)                 Value(Custom class)
word1
word2


class Custom{
int freq;
TreeMap<String, ArrayList<String>>
}

I construct this type of key, value pairs in the outputcollector of reduce
phase. Now I want to "SORT"  this   outputcollector in decreasing order of
the value of frequency in Custom class.
Could some one suggest the possible way to do this?

Thanks,
Aayush

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message