hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From N Kapshoo <nkaps...@gmail.com>
Subject descending keys
Date Fri, 25 Jun 2010 17:42:02 GMT
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.

Mime
View raw message