I'm using incr
to increment a counter column in table.Now I need to filter certain records in scan
so that counter is less than some value(say 1).get
show the counter value(which is 4) for a particular row-key in hbase shell as below:
column=q:counter, timestamp=1419403701427, value=\x00\x00\x00\x00\x00\x00\x00\x04
Now if use scan filter to filter exclude this record from scan as below
{FILTER=> "SingleColumnValueFilter('q','counter',<,'binary:1',true,true)" , COLUMNS=>['q:counter'] }
Above specify record with counter value 4 is still shown in scan result.
I have tried true
,false
as third parameter of SingleColumnValueFilter
.
Do I need to specify 1 in byte format or so?