You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Kevin <ke...@gmail.com> on 2014/09/09 21:55:54 UTC

HBase custom filter protocol buffers

Hi,

I'm making the switch from 0.92.1 to 0.98.1, and I'm in the process of
updating all my custom filters to conform to the new HBase Filter API. I
have quite a few custom filters, so my question is: Must I create a custom
protocol buffer for each of my filters or I can reuse the custom logic that
I had in writeFields() and readFields() in toByteArray() and
parseFrom(byte[]), respectively?

I did post this same question on Cloudera's CDH User Google group, but I
figured it was better suited to be asked on the official HBase mailing
list. (Sorry for posting in multiple locations.)

Thanks,
Kevin

Re: HBase custom filter protocol buffers

Posted by Ted Yu <yu...@gmail.com>.
For each of your filters that carries custom information (limit, range,
etc), you need to create corresponding protobuf entity.

See hbase-protocol/src/main/protobuf/Filter.proto for examples.

Cheers

On Tue, Sep 9, 2014 at 12:55 PM, Kevin <ke...@gmail.com> wrote:

> Hi,
>
> I'm making the switch from 0.92.1 to 0.98.1, and I'm in the process of
> updating all my custom filters to conform to the new HBase Filter API. I
> have quite a few custom filters, so my question is: Must I create a custom
> protocol buffer for each of my filters or I can reuse the custom logic that
> I had in writeFields() and readFields() in toByteArray() and
> parseFrom(byte[]), respectively?
>
> I did post this same question on Cloudera's CDH User Google group, but I
> figured it was better suited to be asked on the official HBase mailing
> list. (Sorry for posting in multiple locations.)
>
> Thanks,
> Kevin
>