hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Rawson <ryano...@gmail.com>
Subject Re: Order of keys - custom comparator?
Date Tue, 21 Jul 2009 01:52:38 GMT
He'd have to use some sign and complement with negation/complement for
negative numbers to get the bit pattern to work out...

But as for custom comparators, there sadly wont be any, due to the
need of compairing keys also in the META table.


On Mon, Jul 20, 2009 at 6:46 PM, Erik Holstad<erikholstad@gmail.com> wrote:
> Hey Saptarshi!
> I'm not sure what you are trying to do with the order of -5 < rowKey < 5,
> but it is not possible to send in a
> comparator when scanning, since everything has already been put into HBase.
> And you are right that putting in ints as row keys doesn't keep the order
> you are looking for since there is a sign bit.
> But what you can do is to add an extra layer on your client that shifts all
> your row keys or just use the positive ones.
> Regards Erik

View raw message