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