Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 522641049F for ; Wed, 26 Feb 2014 14:21:07 +0000 (UTC) Received: (qmail 53778 invoked by uid 500); 26 Feb 2014 14:21:05 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 53437 invoked by uid 500); 26 Feb 2014 14:21:05 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 53429 invoked by uid 99); 26 Feb 2014 14:21:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 14:21:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 14:20:57 +0000 Received: by mail-pb0-f41.google.com with SMTP id jt11so1048286pbb.0 for ; Wed, 26 Feb 2014 06:20:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=iHQw2A/QNFQG1PYF9YoKALcqHbgv7hx01Z37VG2Uya8=; b=Y9BBLyOZFH11TZ231fhXL7GznI/B+IGJUPG3zH+zH1b8VfRMMIVv4+fTrHRJIRYNjp XUzLa/LyMWDuCZGey6kXs1/fCRL0ooFCA+qvu6Mx7Fpl84D9+DbW0vMSArVKUaRZI/sq PdGOi1/UbWcZKULFMAYiN++ixDH2ma/AkzBYcGco+omUwzAbHG+6wJPAXY44uWVw/3KV t3C4tmghGXDAEtRKzLpve2o0LfpM7T4uVe/lNRnc4SLgGxi4rEKeAZrgjVmDtucCwjdT NZcC2Mad+kqMR5jy+sE6aFpaMh3NJuLjSOM7X1h3/3x9mUuGEU35ejka5BTre4L8raA6 cnKQ== X-Received: by 10.68.227.4 with SMTP id rw4mr7020194pbc.3.1393424435987; Wed, 26 Feb 2014 06:20:35 -0800 (PST) Received: from [10.189.110.57] (71.sub-70-197-12.myvzw.com. [70.197.12.71]) by mx.google.com with ESMTPSA id ei4sm3773084pbb.42.2014.02.26.06.20.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 06:20:33 -0800 (PST) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <815ABE7F-624C-4219-A3FD-445146A4269E@gmail.com> Cc: "" X-Mailer: iPhone Mail (10B146) From: Ted Yu Subject: Re: Discussion: dropping filterKeyValue(Cell ignored) from FilterBase Date: Wed, 26 Feb 2014 06:15:21 -0800 To: "dev@hbase.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org I have creates HBASE-10609 and attached a patch there.=20 Cheers On Feb 25, 2014, at 9:42 AM, Jeffrey Zhong wrote: > I see. As long as we don=C2=B9t remove the function, it should be fine. >=20 > Thanks, > -Jeffrey=20 >=20 > On 2/24/14 6:10 PM, "Ted Yu" wrote: >=20 >> bq. filterKeyValue is part of public/Stable Filter interface >>=20 >> As I mentioned in my first email: >> FilterBase.java has been marked @InterfaceAudience.Private since 0.96 >>=20 >> Client Filters are free to override filterKeyValue(Cell ignored) in their= >> implementation. >>=20 >> Cheers >>=20 >>=20 >> On Mon, Feb 24, 2014 at 5:52 PM, Jeffrey Zhong >> wrote: >>=20 >>>=20 >>> filterKeyValue is part of public/Stable Filter interface. >>>=20 >>> For example, Phoenix use filterKeyValue in many places. I guess there >>> are >>> other hbase applications implements filters with this >>> function.Therefore, >>> it will break compatibilities for some applications so it's better we >>> can >>> firstly desecrated this function and remove it in later major release. >>>=20 >>>=20 >>> Thanks, >>> -Jeffrey >>>=20 >>> On 2/24/14 5:33 PM, "Ted Yu" wrote: >>>=20 >>>> Thanks for the confirmation, Lars. >>>>=20 >>>> Will wait for a few days before opening JIRA. >>>>=20 >>>>=20 >>>> On Mon, Feb 24, 2014 at 4:19 PM, lars hofhansl >>> wrote: >>>>=20 >>>>> Let's remove it and add adequate documentation. It has been the >>> source >>>>> of >>>>> too many problems. >>>>>=20 >>>>> If filterRowKey returns true filterKeyValue needs to be consistent >>> with >>>>> it. >>>>> filterKeyValue can assume that filterRowKey has already been called >>> for >>>>> the row. >>>>>=20 >>>>> -- Lars >>>>>=20 >>>>>=20 >>>>>=20 >>>>> ________________________________ >>>>> From: Ted Yu >>>>> To: "dev@hbase.apache.org" >>>>> Sent: Monday, February 24, 2014 9:44 AM >>>>> Subject: Discussion: dropping filterKeyValue(Cell ignored) from >>>>> FilterBase >>>>>=20 >>>>>=20 >>>>> Hi, >>>>> FilterBase.java has been marked @InterfaceAudience.Private since 0.96 >>>>> I want to get your opinion on making potential change to FilterBase - >>>>> dropping filterKeyValue(Cell ignored). >>>>>=20 >>>>> You can find background in HBASE-10485: PrefixFilter#filterKeyValue() >>>>> should perform filtering on row key >>>>>=20 >>>>> My thinking is that dropping filterKeyValue(Cell ignored) would let >>>>> developers make conscientious decision on when ReturnCode.INCLUDE >>>>> should be >>>>> returned. >>>>> This is for 0.99 only. >>>>>=20 >>>>> Your opinion is appreciated. >>>>>=20 >>>>> Thanks >>>=20 >>>=20 >>>=20 >>> -- >>> CONFIDENTIALITY NOTICE >>> NOTICE: This message is intended for the use of the individual or >>> entity to >>> which it is addressed and may contain information that is confidential, >>> privileged and exempt from disclosure under applicable law. If the >>> reader >>> of this message is not the intended recipient, you are hereby notified >>> that >>> any printing, copying, dissemination, distribution, disclosure or >>> forwarding of this communication is strictly prohibited. If you have >>> received this communication in error, please contact the sender >>> immediately >>> and delete it from your system. Thank You. >=20 >=20 >=20 > --=20 > CONFIDENTIALITY NOTICE > NOTICE: This message is intended for the use of the individual or entity t= o=20 > which it is addressed and may contain information that is confidential,=20= > privileged and exempt from disclosure under applicable law. If the reader=20= > of this message is not the intended recipient, you are hereby notified tha= t=20 > any printing, copying, dissemination, distribution, disclosure or=20 > forwarding of this communication is strictly prohibited. If you have=20 > received this communication in error, please contact the sender immediatel= y=20 > and delete it from your system. Thank You.