There is a column lets say Countries in hbase and I want to prefix on this column(this is not a row key) then I will use ColumnPrefixFilter and do something like this
ColumnPrefixFilter columnPrefixFilter = new ColumnPrefixFilter("IND".getBytes());
but here I have two problems :-
- I don't have any option to specify the column family and namespace name so that it should search only in countries column.
Secondly this filter is not working and giving no response whereas entry with INDIA value is present. These are the dependencies I am using for hbase.
<hbase-client.version>2.0.1</hbase-client.version> <hbase-ds.version>0.0.2-SNAPSHOT</hbase-ds.version>