hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Roland (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5428) Allow for custom filters to be registered within the Thrift interface
Date Fri, 17 Feb 2012 21:22:57 GMT

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

Robert Roland commented on HBASE-5428:

@stack Correct - ParseFilter.java (used by Thrift to parse filter strings) has a hardcoded
list of acceptable filters contained within its static initializer.  This will allow the user
to specify additional filters that are registered within ParseFilter.

In my use case, I have a Ruby client that uses Thrift to communicate with HBase, and I want
to apply a custom filter during a scan.

The custom filters must implement public static Filter createFilterFromArguments(ArrayList<byte[]>
filterArguments) - this isn't a stretch, as the standard filters also implement this interface.

> Allow for custom filters to be registered within the Thrift interface
> ---------------------------------------------------------------------
>                 Key: HBASE-5428
>                 URL: https://issues.apache.org/jira/browse/HBASE-5428
>             Project: HBase
>          Issue Type: Improvement
>          Components: thrift
>    Affects Versions: 0.92.0
>            Reporter: Robert Roland
>              Labels: patch
>             Fix For: 0.94.0
>         Attachments: ThriftCustomFilters.patch
> Custom filters work within the Java client API, but are not accessible within the Thrift
API.  Attempting to use one will generate a "Filter Name x not supported"
> Attached patch allows a user to specify a list of custom filters that are registered
at Thrift server startup time within the HBase configuration files:
> <property>
>   <name>hbase.thrift.filters</name>
>   <value>MyFilter:com.foo.Filter,OtherFilter:com.foo.OtherFilter</value>
> </property>
> Patch created off SVN r1245727

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message