HBase rowkey design for column family desc order sorting

447 Views Asked by At

I am wondering whether I can design a rowkey in a hbase table in a way that the stored data will be DESC sorted following a column family data. Otherwise, is there any way to store data in a DESC ORDER following a specific column family?

Thanks

1

There are 1 best solutions below

1
On

I am not sure if there is way to sort column or column family, Hbase stores data sorted based on row key.

so why don't you put your column as part of row key. and then scan API has the way to do reverse scan. which might help you.