简体   繁体   中英

HBase rowkey design for column family desc order sorting

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM