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 760B7111D9 for ; Thu, 11 Sep 2014 23:06:49 +0000 (UTC) Received: (qmail 52939 invoked by uid 500); 11 Sep 2014 23:06:47 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 52861 invoked by uid 500); 11 Sep 2014 23:06:47 -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 52844 invoked by uid 99); 11 Sep 2014 23:06:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 23:06:47 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nishanth.2884@gmail.com designates 209.85.192.41 as permitted sender) Received: from [209.85.192.41] (HELO mail-qg0-f41.google.com) (209.85.192.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 23:06:19 +0000 Received: by mail-qg0-f41.google.com with SMTP id a108so8124786qge.28 for ; Thu, 11 Sep 2014 16:06:18 -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=UW9DH9Z0vd7F1n8Um9f3V37AIKptcofEq+wC67lTcEM=; b=nQKF+kWUPhZ9LR05z9N69yqMhCtK+4nqrJyyWniec4FB2el+uR5njRpNYggf/zYBHP r5uFw+pNZF0bMPVRbG7Zt72H5NUFgrQKFEkoedNYLji8j9rZXQY4+94R8GXOIHvGsdUu vvDJs1fDWbWSCYsHARe21lCj6GQwVYvumLBoFiE0V2Nx/Ma/uH9khrqZFRznd7taKCjW fFSxYn6hVexdqHgem1FAsf4e4qmz9c4dHctpF/7sJ1xUSP4lE1o50llLm1BzrRI0QpaJ d61I5eywKpAbcp6QQxjW1/CXgHSNmcDQ6cG2oUn0ooRcoptNyBQJl82JTPPcRQwEgIN0 REpw== MIME-Version: 1.0 X-Received: by 10.224.122.137 with SMTP id l9mr6687351qar.76.1410476778485; Thu, 11 Sep 2014 16:06:18 -0700 (PDT) Received: by 10.96.12.134 with HTTP; Thu, 11 Sep 2014 16:06:18 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Sep 2014 17:06:18 -0600 Message-ID: Subject: Re: Custom Filter on hbase Column From: Nishanth S To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7bdc8578587df10502d23787 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc8578587df10502d23787 Content-Type: text/plain; charset=UTF-8 Sure Sean.This is much needed. -Nishan On Thu, Sep 11, 2014 at 3:57 PM, Sean Busbey wrote: > I filed HBASE-11950 to get some details added to the book on this topic[1]. > > Nishanth, could you follow that ticket and give feedback on whatever update > ends up proposed? > > [1]: https://issues.apache.org/jira/browse/HBASE-11950 > > On Thu, Sep 11, 2014 at 4:40 PM, Ted Yu wrote: > > > See http://search-hadoop.com/m/DHED4xWh622 > > > > On Thu, Sep 11, 2014 at 2:37 PM, Nishanth S > > wrote: > > > > > Hey All, > > > > > > I am sorry if this is a naive question.Do we need to generate a proto > > file > > > using proto buffer compiler when implementing a filter.I did not see > that > > > any where in the documentation.Can some one help please? > > > > > > On Thu, Sep 11, 2014 at 12:41 PM, Nishanth S > > > wrote: > > > > > > > Thanks Dima and Ted.Yes I need to return the first the 1000 > > > > characters.There is no matching involved. > > > > > > > > -Nishan > > > > > > > > On Thu, Sep 11, 2014 at 12:24 PM, Ted Yu > wrote: > > > > > > > >> In Nishanth's case, the 5K message is stored in one KeyValue, right > ? > > > >> > > > >> If only the first 1000 Characters of this message are to be > returned, > > > >> a new KeyValue > > > >> needs to be composed and returned. > > > >> > > > >> Cheers > > > >> > > > >> On Thu, Sep 11, 2014 at 11:09 AM, Dima Spivak > > > > >> wrote: > > > >> > > > >> > Hi Nishanth, > > > >> > > > > >> > Take a look at http://hbase.apache.org/book/client.filter.html . > > If I > > > >> > understand your use case correctly, you might want to look at > > > >> > RegexStringComparator to match the first 1000 characters of your > > > column > > > >> > qualifier. > > > >> > > > > >> > -Dima > > > >> > > > > >> > On Thu, Sep 11, 2014 at 12:37 PM, Nishanth S < > > nishanth.2884@gmail.com > > > > > > > >> > wrote: > > > >> > > > > >> > > Hi All, > > > >> > > > > > >> > > I have an hbase table with multiple cfs (say c1,c2,c3).Each of > > this > > > >> > column > > > >> > > family has a column 'message' which is about 5K.What I need to > do > > > is > > > >> to > > > >> > > grab only the first 1000 Characters of this message when I do a > > get > > > on > > > >> > the > > > >> > > table using row Key.I was thinking of using filters to do this > on > > > >> hbase > > > >> > > sever side.Can some one help me on how to go about this. > > > >> > > > > > >> > > > > > >> > > Thanks, > > > >> > > Nishan > > > >> > > > > > >> > > > > >> > > > > > > > > > > > > > > > > > -- > Sean > --047d7bdc8578587df10502d23787--