use Long.MAX - incrementColumnValue() as qualifier
2010/6/25 N Kapshoo <[email protected]>: > 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. >
