hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Stepachev <oct...@gmail.com>
Subject Re: descending keys
Date Fri, 25 Jun 2010 19:00:46 GMT
use Long.MAX - incrementColumnValue() as qualifier

2010/6/25 N Kapshoo <nkapshoo@gmail.com>:
> I have a 'long' number that I get by using
> HTable.'incrementColumnValue'. This long is used as the qualifier id
> on a columnFamily.
> However in my listings, I always want the latest number first
> (descending order basically).
> Currently I call the NavigableMap.descendingKeySet after I do the 'Get'.
> Is this the optimal way of doing it? Can I do something that can be
> faster? Especially if I start filtering out and getting only first
> 1000 etc then this wont work.
> How should I go about this? Change the key or is there something else
> I can do while creating the table, doing a Get etc?
> Thanks.

View raw message