Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> WritableComparable

Copy link to this message
Re: WritableComparable
Thanks for all the help on this issue.  It turned out to be a very simple
problem with my 'compareTo' implementation.
The ordering was symmetric but _not_ transitive.


On Tue, Aug 16, 2011 at 4:47 PM, Chris White <[EMAIL PROTECTED]>wrote:

> Can you copy the contents of your parent Writable readField and write
> methods (not the ones youve already posted)
> Another thing you could try is if you know you have two identical keys, can
> you write a unit test to examine the result of compareTo for two instances
> to confirm the correct behavior (even going as far as serializing and
> deserializing before the comparison)
> Finally just to confirm, you dont have any group or order comparators
> registered?