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 B30FF9094 for ; Thu, 15 Mar 2012 16:40:13 +0000 (UTC) Received: (qmail 69137 invoked by uid 500); 15 Mar 2012 16:40:11 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 69084 invoked by uid 500); 15 Mar 2012 16:40:11 -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 69074 invoked by uid 99); 15 Mar 2012 16:40:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 16:40:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of doug.meil@explorysmedical.com designates 216.32.180.14 as permitted sender) Received: from [216.32.180.14] (HELO va3outboundpool.messaging.microsoft.com) (216.32.180.14) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 16:40:02 +0000 Received: from mail32-va3-R.bigfish.com (10.7.14.247) by VA3EHSOBE003.bigfish.com (10.7.40.23) with Microsoft SMTP Server id 14.1.225.23; Thu, 15 Mar 2012 16:39:42 +0000 Received: from mail32-va3 (localhost [127.0.0.1]) by mail32-va3-R.bigfish.com (Postfix) with ESMTP id D536A406B1 for ; Thu, 15 Mar 2012 16:39:41 +0000 (UTC) X-SpamScore: -18 X-BigFish: PS-18(zzbb2dI9371I1432N98dK14ffOzz1202hzz8275bh8275dhz2fh2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:157.56.244.181;KIP:(null);UIP:(null);IPV:NLI;H:CH1PRD0410HT004.namprd04.prod.outlook.com;RD:none;EFVD:NLI Received-SPF: pass (mail32-va3: domain of explorysmedical.com designates 157.56.244.181 as permitted sender) client-ip=157.56.244.181; envelope-from=doug.meil@explorysmedical.com; helo=CH1PRD0410HT004.namprd04.prod.outlook.com ;.outlook.com ; Received: from mail32-va3 (localhost.localdomain [127.0.0.1]) by mail32-va3 (MessageSwitch) id 1331829580898125_3230; Thu, 15 Mar 2012 16:39:40 +0000 (UTC) Received: from VA3EHSMHS010.bigfish.com (unknown [10.7.14.249]) by mail32-va3.bigfish.com (Postfix) with ESMTP id D4AF13C0174 for ; Thu, 15 Mar 2012 16:39:40 +0000 (UTC) Received: from CH1PRD0410HT004.namprd04.prod.outlook.com (157.56.244.181) by VA3EHSMHS010.bigfish.com (10.7.99.20) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 15 Mar 2012 16:39:37 +0000 Received: from CH1PRD0410MB392.namprd04.prod.outlook.com ([169.254.10.146]) by CH1PRD0410HT004.namprd04.prod.outlook.com ([10.255.147.39]) with mapi id 14.16.0123.000; Thu, 15 Mar 2012 16:39:35 +0000 From: Doug Meil To: "user@hbase.apache.org" Subject: Re: Scan.addFamiliy reduces results Thread-Topic: Scan.addFamiliy reduces results Thread-Index: AQHNAsYEtVuFVwoPNEeLpkKR+MIaMpZrS8eA Date: Thu, 15 Mar 2012 16:39:34 +0000 Message-ID: In-Reply-To: <4F621400.8080909@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.147.4] Content-Type: text/plain; charset="us-ascii" Content-ID: <5370C2BDDD876C4EB03D329EC24D30E6@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: explorysmedical.com X-Virus-Checked: Checked by ClamAV on apache.org re: "However, I am getting different number of results, depending on which families are added" Yes. I'd suggest you read this in the RefGuide. http://hbase.apache.org/book.html#datamodel On 3/15/12 12:08 PM, "Peter Wolf" wrote: >Hi all, > >I am doing a scan on a table with multiple families. My code looks like >this... > > Scan scan =3D new Scan(calculateStartRowKey(a), >calculateEndRowKey(b)); > > scan.setCaching(10000); > Filter filter =3D new SingleColumnValueFilter(xFamily, xColumn, >CompareFilter.CompareOp.EQUAL, Bytes.toBytes(x)); > scan.setFilter(filter); > scan > .addFamily(xFamily) > .addFamily(yFamily) > .addFamily(zFamily); > > ResultScanner scanner =3D hTable.getScanner(scan); > > Iterator it =3D scanner.iterator(); > int resultCount =3D 0; > while (it.hasNext()) { > Result result =3D it.next(); > > resultCount++; > } > >However, I am getting different number of results, depending on which >families are added. For example these give different result counts > > scan > //.addFamily(xFamily) > .addFamily(yFamily) > .addFamily(zFamily); >and > scan > .addFamily(xFamily) > .addFamily(yFamily) > .addFamily(zFamily); > > >There is no error message, and I don't see anything in the Scan >documentation. Does anyone know what is going on? > >Thanks >Peter > > >