You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Devender Yadav <de...@impetus.co.in> on 2016/11/30 09:16:29 UTC

Can I use SingleColumnValueFilter on rowkey in HBase?

Hi All,



HBase version: 1.2.2 (both server and Java API)

I am using SingleColumnValueFilter.

public SingleColumnValueFilter(byte[] family,
                               byte[] qualifier,
                               CompareFilter.CompareOp compareOp,
                               ByteArrayComparable comparator)


I am using org.apache.hadoop.hbase.filter.RegexStringComparator to perform LIKE query on rowkey.

It's working fine with columns.

But it gives me all the records if I use rowkey instead of a column.?



Regards,
Devender

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Re: Can I use SingleColumnValueFilter on rowkey in HBase?

Posted by Ted Yu <te...@yahoo.com.INVALID>.
Have you looked at RowFilter ?
There is also FuzzyRowFilter which is versatile. 

    On Wednesday, November 30, 2016 1:16 AM, Devender Yadav <de...@impetus.co.in> wrote:
 

 Hi All,



HBase version: 1.2.2 (both server and Java API)

I am using SingleColumnValueFilter.

public SingleColumnValueFilter(byte[] family,
                              byte[] qualifier,
                              CompareFilter.CompareOp compareOp,
                              ByteArrayComparable comparator)


I am using org.apache.hadoop.hbase.filter.RegexStringComparator to perform LIKE query on rowkey.

It's working fine with columns.

But it gives me all the records if I use rowkey instead of a column.?



Regards,
Devender

________________________________






NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.