hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anirudh Todi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4176) Exposing HBase Filters to the Thrift API
Date Tue, 09 Aug 2011 06:50:27 GMT

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

Anirudh Todi commented on HBASE-4176:
-------------------------------------

@Stack and @Ted - thanks for reviewing the patch!

The patch does not depend on hbase-1744.

@Stack - I am not changing the meaning of LESS_OR_EQUAL, GREATER etc - if you look at the
existing version of CompareFilter, LESS_OR_EQUAL seems to correspond to "<" instead of
"<=" and vice verse for LESS. The same goes for GREATER and GREATER_OR_EQUAL and for EQUAL
and NOT_EQUAL

@Stack when you say you should be able to specify a filter using the full package name - does
that mean the filter string could look like:

{noformat}
"org.apache.hadoop.hbase.filter.KeyOnlyFilter()"
{noformat}

@Stack - I thought a great deal about how I would implement it without hard-coding the names
of the filters I am supporting. 
However, I was unable to come up with anything. if you or anyone else has an idea - I'd love
to hear it

@Stack - I would have to look into how we would extend this mini-language to allow one to
construct Filter objects from the shell. It's an interesting idea though!

> Exposing HBase Filters to the Thrift API
> ----------------------------------------
>
>                 Key: HBASE-4176
>                 URL: https://issues.apache.org/jira/browse/HBASE-4176
>             Project: HBase
>          Issue Type: Improvement
>          Components: thrift
>            Reporter: Anirudh Todi
>            Assignee: Anirudh Todi
>            Priority: Minor
>         Attachments: Filter Language.docx, HBASE-4176.patch
>
>
> Currently, to use any of the filters, one has to explicitly add a scanner for the filter
in the Thrift API making it messy and long. With this patch, I am trying to add support for
all the filters in a clean way. The user specifies a filter via a string. The string is parsed
on the server to construct the filter. More information can be found in the attached document
named Filter Language
> This patch is trying to extend and further the progress made by the patches in the HBASE-1744
JIRA (https://issues.apache.org/jira/browse/HBASE-1744)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message