Santhosh Kalisamy
Santhosh Kalisamy

Reputation: 3

How to scan HBASE table based only on column value and irrespective of column family?

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.

Upvotes: 0

Views: 166

Answers (2)

sel-fish
sel-fish

Reputation: 4496

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.

Upvotes: 0

miroB
miroB

Reputation: 484

You can use FilterList to combine four SingleColumnValueFilter instances.

Upvotes: 1

Related Questions