hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olariu Adrian (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1821) Filtering by SingleColumnValueFilter bug
Date Thu, 10 Sep 2009 16:07:57 GMT

    [ 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.


Mime
View raw message