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 97B3610267 for ; Tue, 25 Feb 2014 02:10:57 +0000 (UTC) Received: (qmail 1018 invoked by uid 500); 25 Feb 2014 02:10:55 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 830 invoked by uid 500); 25 Feb 2014 02:10:55 -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 822 invoked by uid 99); 25 Feb 2014 02:10:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 02:10:55 +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.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yh0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 02:10:50 +0000 Received: by mail-yh0-f50.google.com with SMTP id 29so6321275yhl.37 for ; Mon, 24 Feb 2014 18:10:30 -0800 (PST) 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=cQfkn3mMVS93zr5vKyTOqnA7XJWAMdFLyNwME9BlFEQ=; b=lJp6eHRm5PDZ5ZSZ/gcqcvTJtwF4TscZXy2hX1VZbrXxiPdxDtajBdn3srTU5W1Njc NOOV4iWVNg5nWk3fLgMOq98ak3TlcGBAuDYnGSes0eYAlg3JKtOjceimpBffy9QpLyHn 7gjHH6acXiPIRK974i58P7nuPKJk6LhHeOddnds3xrj70zrZDD8lzw6WlchhvCBLlFC8 kMmtAFE0txvMpyCmWDBc+5/IDsPIo6FEjJYBNjCvrtSrl/bCfS9fUuOs8K99JpAuap8x NYTtF9awmsqVq5W7wDbjejP49MiOdQZJ1ysqqDutlQawWGtCHTfe41uRBT1+AxC2MpFh FAUg== MIME-Version: 1.0 X-Received: by 10.236.168.166 with SMTP id k26mr2810891yhl.64.1393294230071; Mon, 24 Feb 2014 18:10:30 -0800 (PST) Received: by 10.170.43.8 with HTTP; Mon, 24 Feb 2014 18:10:30 -0800 (PST) In-Reply-To: References: Date: Mon, 24 Feb 2014 18:10:30 -0800 Message-ID: Subject: Re: Discussion: dropping filterKeyValue(Cell ignored) from FilterBase From: Ted Yu To: "dev@hbase.apache.org" Content-Type: multipart/alternative; boundary=20cf3040edbaa6aef804f33197ae X-Virus-Checked: Checked by ClamAV on apache.org --20cf3040edbaa6aef804f33197ae Content-Type: text/plain; charset=ISO-8859-1 bq. filterKeyValue is part of public/Stable Filter interface As I mentioned in my first email: FilterBase.java has been marked @InterfaceAudience.Private since 0.96 Client Filters are free to override filterKeyValue(Cell ignored) in their implementation. Cheers On Mon, Feb 24, 2014 at 5:52 PM, Jeffrey Zhong wrote: > > filterKeyValue is part of public/Stable Filter interface. > > 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. > > > Thanks, > -Jeffrey > > On 2/24/14 5:33 PM, "Ted Yu" wrote: > > >Thanks for the confirmation, Lars. > > > >Will wait for a few days before opening JIRA. > > > > > >On Mon, Feb 24, 2014 at 4:19 PM, lars hofhansl wrote: > > > >> Let's remove it and add adequate documentation. It has been the source > >>of > >> too many problems. > >> > >> If filterRowKey returns true filterKeyValue needs to be consistent with > >>it. > >> filterKeyValue can assume that filterRowKey has already been called for > >> the row. > >> > >> -- Lars > >> > >> > >> > >> ________________________________ > >> From: Ted Yu > >> To: "dev@hbase.apache.org" > >> Sent: Monday, February 24, 2014 9:44 AM > >> Subject: Discussion: dropping filterKeyValue(Cell ignored) from > >>FilterBase > >> > >> > >> 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). > >> > >> You can find background in HBASE-10485: PrefixFilter#filterKeyValue() > >> should perform filtering on row key > >> > >> 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. > >> > >> Your opinion is appreciated. > >> > >> Thanks > > > > -- > 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. > --20cf3040edbaa6aef804f33197ae--