Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6025B9663 for ; Tue, 8 May 2012 10:48:17 +0000 (UTC) Received: (qmail 9932 invoked by uid 500); 8 May 2012 10:48:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 9717 invoked by uid 500); 8 May 2012 10:48:16 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 9686 invoked by uid 99); 8 May 2012 10:48:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 10:48:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 10:48:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8DD24439203 for ; Tue, 8 May 2012 10:47:51 +0000 (UTC) Date: Tue, 8 May 2012 10:47:51 +0000 (UTC) From: "Davis Abraham (JIRA)" To: issues@hbase.apache.org Message-ID: <1627071173.38238.1336474071582.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <121634492.34446.1336400809082.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5951) Combining ColumnPrefixFilters using filterlist. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270359#comment-13270359 ] Davis Abraham commented on HBASE-5951: -------------------------------------- Thank you.... > Combining ColumnPrefixFilters using filterlist. > ----------------------------------------------- > > Key: HBASE-5951 > URL: https://issues.apache.org/jira/browse/HBASE-5951 > Project: HBase > Issue Type: Bug > Components: filters > Affects Versions: 0.92.1 > Environment: Combining multiple ColumnPrefixFilters using filterlist does not return exact result. > Reporter: Davis Abraham > > FilterList listOfFilters = new FilterList (FilterList.Operator.MUST_PASS_ALL); > FilterList listOfFilters1 = new FilterList (FilterList.Operator.MUST_PASS_ALL); > FilterList listOfFilters2 = new FilterList (FilterList.Operator.MUST_PASS_ALL); > SingleColumnValueFilter SingleFilter1 = new > SingleColumnValueFilter(Bytes.toBytes("cf"), > Bytes.toBytes("country"), CompareOp.EQUAL, > Bytes.toBytes("USA")); > listOfFilters.addFilter(SingleFilter1); > ValueFilter VF1= new ValueFilter (CompareOp.EQUAL, > new SubstringComparator("ABC")); > ColumnPrefixFilter CF1= new ColumnPrefixFilter(Bytes.toBytes("name")); > listOfFilters1.addFilter(CF1); > listOfFilters1.addFilter(VF1); > listOfFilters.addFilter(listOfFilters1); > ValueFilter VF2= new ValueFilter (CompareOp.EQUAL, > new SubstringComparator("ED")); > ColumnPrefixFilter CF2= new ColumnPrefixFilter (Bytes.toBytes("CRS")); > listOfFilters2.addFilter(CF2); > listOfFilters2.addFilter(VF2); > listOfFilters.addFilter(listOfFilters2); > When i do a combibation of SingleFilter1 and listOfFilters1 > the result is correct, same way the combination of > SingleFilter1 and listOfFilters2 is returing correct result. > But when all the three is combined im not getting any result.. > Is it the problem with multiple ColumnPrefixFilter??? > Value "ABC" exist in name.0 and value "ED" exist in CRS.0 and it is in > the same row under same Column Family. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira