简体   繁体   中英

Retrieve all columns from Hbase Get except specifc column names

I have an Hbase Table containing different set of column names for every row key. The job I am trying to complete is to ignore certain columns from Get. ie, The Result object would only contain name-value pairs where the names didn't match the ignore list.

I know about MultipleColumnPrefixFilter but what I need is inverse of this filter.

Do we have this feature built-in hbase API or do I need to write a filter for this?

You can have a look at HBase's SkipFilter. It basically adds as a wrapper to your existing Filter and instead of FILTERING IN your lines, it FILTERS THEM OUT. https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/SkipFilter.html

This is readily available out of the box and are very easy to use.

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