简体   繁体   中英

Scanning rownames in HBase without any column data

How can I scan through rownames in HBase without requesting any column data?
I want to make the scan faster by omitting all columns as I need just the rownames.

EDIT: Ok figured it out myself...to get only the rownames FistKeyOnlyFilter can be used. This filter does return more than just the rowkeys but only the first key values from each row so it is much more efficient than requesting the whole row...
If anyone has a better idea, I'm still open for a better way to do it!

You have the right filter. If you wanted to improve further this behavior, you could write your own filter and add it to HBase classpath and your client classpath. As part of the filters coming from HBase, this is the only one I can see in 0.92 that serves you the best.

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