hbase filter based on dynamic column qualifier's value

2016-02-11 Thread Mukesh Jha
Hi I'm storing an array of attributes having attributes+index as qualifier name, my column family name is 'cf' here. Each row in my HBase table that looks like below. cf:attribute1 -> 'value apple' cf:attribute2 -> 'value banana' cf:attribute{N} -> 'value iphone' cf:someId1 ->

Re: hbase filter based on dynamic column qualifier's value

2016-02-11 Thread Ted Yu
Please take a look at filterKeyValue(Cell) method of SingleColumnValueFilter : if (!CellUtil.matchingColumn(c, this.columnFamily, this.columnQualifier)) { When you write your own Filter supporting multiple columns, rewrite the above check to fit your needs. Cheers On Thu, Feb 11, 2016 at