Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5613611300 for ; Tue, 9 Sep 2014 20:24:23 +0000 (UTC) Received: (qmail 20508 invoked by uid 500); 9 Sep 2014 20:24:21 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 20461 invoked by uid 500); 9 Sep 2014 20:24:21 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 20447 invoked by uid 99); 9 Sep 2014 20:24:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2014 20:24:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.213.42 as permitted sender) Received: from [209.85.213.42] (HELO mail-yh0-f42.google.com) (209.85.213.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2014 20:24:15 +0000 Received: by mail-yh0-f42.google.com with SMTP id z6so3695330yhz.15 for ; Tue, 09 Sep 2014 13:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/1W9M+TriKReUVyWiDhUoZgttlwKEzn+BOJBI8lcqaQ=; b=oUFbun5/1IhOuynJfPWl2i75HycDHcbfr6YY4lOqJjzOXc7Y5khLuu0Z9bNFcjfkFU j7Tzkl3pdKw6LNQMdF+FJci0K1KQWQetdko+vZuGZvdvQmAzwg39REMIgbNgLStpjGXb GrJHm31d7GeRn58gPJznOLvmULih9i1It1SQ8vJvVFVYeZPvJpbmEx/i0MdPjTr5fTp2 NpVWzzYVUqNiA1qS4caUPcilqJjmQfYou0tNOmVxwa5GVrKitL+iWOUZgK1RzJq/5WQ3 xvIOVF4nWw4y10VUDPzOSwK4VSDowcrbn3Y4/Y/BwLBAIwZi+K0jYpmpr9RhEkO1MxB+ bb5w== MIME-Version: 1.0 X-Received: by 10.236.191.166 with SMTP id g26mr54383685yhn.30.1410294234611; Tue, 09 Sep 2014 13:23:54 -0700 (PDT) Received: by 10.170.136.14 with HTTP; Tue, 9 Sep 2014 13:23:54 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Sep 2014 13:23:54 -0700 Message-ID: Subject: Re: HBase custom filter protocol buffers From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=20cf30563e8be207cc0502a7b64d X-Virus-Checked: Checked by ClamAV on apache.org --20cf30563e8be207cc0502a7b64d Content-Type: text/plain; charset=UTF-8 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 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 > --20cf30563e8be207cc0502a7b64d--