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

Gregory Chanan commented on HBASE-6477:
---------------------------------------

My thought here is to basically replicate what is going on with Writable today, 
but use the protobuf-based filters introduced in HBASE-6454.  This means:

- Filter would no longer extend Writable
- Filter would require two new methods that are implemented by the specific 
Filter subclasses:
  - "public byte [] toPBBytes()": construct the protobuf message for the 
specific filter and return message.toByteArray()
  - "public Filter fromPBBytes(final byte [])": use mergeFrom to construct the 
protobuf message and convert to the actual filter
- ProtobufUtil's toGet/toScan would use the above methods instead of the 
Writable methods to construct the Filters on the other end of the rpc.
                
> Use PB filter definitions in RPC
> --------------------------------
>
>                 Key: HBASE-6477
>                 URL: https://issues.apache.org/jira/browse/HBASE-6477
>             Project: HBase
>          Issue Type: Task
>          Components: ipc, migration
>            Reporter: Gregory Chanan
>            Assignee: Gregory Chanan
>             Fix For: 0.96.0
>
>
> Use the filters introduced in HBASE-6454 in the rpc so they are extensible

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

        

Reply via email to