0
votes

I have a HBASE table with 4 different column families and each column family has 4 resembling columns. I want to perform a search operation on specific column irrespective of its column family. I tried singleColumnValueFilter but it requires a column family. When I tried with ValueFilter, I am getting only the matching columns in result set, not the entire row. Kindly help me. Thanks in advance.

2

2 Answers

1
votes

You can use FilterList to combine four SingleColumnValueFilter instances.

0
votes

If you want a solution which is more general and don't mind using custom filter, here is an example which you can use.

This filter extends ValueFilter and override filterRowCells method.