hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Kiran <ravikiranmag...@gmail.com>
Subject Re: WritableComparable.compareTo vs RawComparator.compareTo
Date Sat, 31 Aug 2013 07:53:18 GMT
Hi Adeel,

    The RawComparator is the fastest between the two as you avoid the need
to convert the byte stream to Writable objects for comparison .

Regards
Ravi Magham


On Fri, Aug 30, 2013 at 11:16 PM, Adeel Qureshi <adeelmahmood@gmail.com>wrote:

> For secondary sort I am implementing a RawComparator and providing that as
> sortComparator .. is that the faster way or using a WritableComparable as
> mapper output and defining a compareTo method on the key itself
>
> also what happens if both are defined, is one ignored
>

Mime
View raw message