Return-Path: X-Original-To: apmail-incubator-accumulo-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-accumulo-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6B11B347 for ; Fri, 6 Jan 2012 18:43:05 +0000 (UTC) Received: (qmail 8272 invoked by uid 500); 6 Jan 2012 18:43:05 -0000 Delivered-To: apmail-incubator-accumulo-user-archive@incubator.apache.org Received: (qmail 8217 invoked by uid 500); 6 Jan 2012 18:43:05 -0000 Mailing-List: contact accumulo-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: accumulo-user@incubator.apache.org Delivered-To: mailing list accumulo-user@incubator.apache.org Received: (qmail 8208 invoked by uid 99); 6 Jan 2012 18:43:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 18:43:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 18:42:58 +0000 Received: by werm13 with SMTP id m13so1477158wer.6 for ; Fri, 06 Jan 2012 10:42:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.133.29 with SMTP id p29mr3423441wei.49.1325875358128; Fri, 06 Jan 2012 10:42:38 -0800 (PST) Received: by 10.216.0.197 with HTTP; Fri, 6 Jan 2012 10:42:38 -0800 (PST) In-Reply-To: <16C3B74A0CA83C4C86F405935BC4F4E301097B8B@shark3.netcentric.local> References: <16C3B74A0CA83C4C86F405935BC4F4E301097B8B@shark3.netcentric.local> Date: Fri, 6 Jan 2012 13:42:38 -0500 Message-ID: Subject: Re: Directly addressing columnFamily/columnQualifiers results from a Scanner From: Keith Turner To: accumulo-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The Accumulo implementation and API do not assume that Rows fit into memory. To work within this assumption, we usually iterate over data. I assume this HBase Result object sucks the row into a map in memory. We do not have anything like that. In 1.4 we have the RowIterator, which takes a scanner and makes it easy to iterate over the columns in each row. This may be helpful. If you think we need something additional, open a ticket. Keith On Fri, Jan 6, 2012 at 11:09 AM, Michael Giordano wrote: > My apologies for the potentially silly question but I come from an HBase > world and I am struggling to find equivalent functionality in Accumulo. > > > > In the HBase world, there is an object called "Result" > (org.apache.hadoop.hbase.client.Result is the fully qualified name). > > The "Result" object is the product of iterating over a "ResultScanner" > (org.apache.hadoop.hbase.client.ResultScanner is the fully qualified name). > > The "Result" object has a method called getValue(ColumnFamily, > ColumnQualifier) which (unsurprisingly) gets the value associated with a > ColumnFamily and ColumnQualifier. > > > > The cloudbase "Scanner" seems to be the equivalent to the HBase > "ResultScanner" but I cannot seem to find an equivalent to the "Result" > object. > > > > So I create a "Scanner" and call fetchColumn(columnFamily, columnQualifier) > for several columnQualifiers. > > The way I get the data for a row is to iterate over all of the columns > individually until I obtain all of the columnQualifiers I requested? > > Or is there a way to directly address the columnFamily/columnQualifer by > name to obtain a value? > > > > Thanks for your anticipated support, > > Mike G.