You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Olariu Adrian (JIRA)" <ji...@apache.org> on 2009/09/10 18:07:57 UTC

[jira] Commented: (HBASE-1821) Filtering by SingleColumnValueFilter bug

    [ https://issues.apache.org/jira/browse/HBASE-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753678#action_12753678 ] 

Olariu Adrian commented on HBASE-1821:
--------------------------------------

I also added this:
public ReturnCode filterKeyValue(KeyValue keyValue) {
+    if (matchFound) {
+      return ReturnCode.INCLUDE;
+    }
     if (!keyValue.matchingColumn(this.columnFamily, this.columnQualifier)) {

If a match on the row was already been found don't check for column match anymore.
This can be efficient when filtering rows whit very large number of columns and the column searched for it's on the first ones.

> Filtering by SingleColumnValueFilter bug
> ----------------------------------------
>
>                 Key: HBASE-1821
>                 URL: https://issues.apache.org/jira/browse/HBASE-1821
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: Jonathan Gray
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1821.patch
>
>
> See up in hbase-user mailing list under title 'Filtering by SingleColumnValueFilter'.  Adrian describes roughly how he fixed the issue (And what he wanted the filter to do).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.