Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-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 DC2FF9A7C for ; Thu, 24 May 2012 14:53:43 +0000 (UTC) Received: (qmail 93727 invoked by uid 500); 24 May 2012 14:53:43 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 93703 invoked by uid 500); 24 May 2012 14:53:43 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 93694 invoked by uid 99); 24 May 2012 14:53:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 14:53:43 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chris.colclough@jhuapl.edu designates 128.244.251.37 as permitted sender) Received: from [128.244.251.37] (HELO jhuapl.edu) (128.244.251.37) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 14:53:34 +0000 Received: from ([128.244.198.90]) by piper.jhuapl.edu with ESMTP with TLS id 5Y8HCH1.136733528; Thu, 24 May 2012 10:53:09 -0400 Received: from aplesstripe.dom1.jhuapl.edu ([128.244.198.211]) by aplexcas1.dom1.jhuapl.edu ([128.244.198.90]) with mapi; Thu, 24 May 2012 10:53:08 -0400 From: "Colclough, Christopher M." To: "user@accumulo.apache.org" Date: Thu, 24 May 2012 10:53:06 -0400 Subject: RE: Scan and display entire row Thread-Topic: Scan and display entire row Thread-Index: Ac05uAxZjDXWYf9NTF+s/uxrVPU3IAABMdtw Message-ID: <0BBD8C9342CBA343AE2C91D32990988C45542B9246@aplesstripe.dom1.jhuapl.edu> References: <0BBD8C9342CBA343AE2C91D32990988C45542B9157@aplesstripe.dom1.jhuapl.edu> <4FBE3C6D.3060002@ccri.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_0BBD8C9342CBA343AE2C91D32990988C45542B9246aplesstripedo_" MIME-Version: 1.0 --_000_0BBD8C9342CBA343AE2C91D32990988C45542B9246aplesstripedo_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable That's it! I failed to look at all the method supplied by the Key object. Thanks to all... From: Jared winick [mailto:jaredwinick@gmail.com] Sent: Thursday, May 24, 2012 10:02 AM To: user@accumulo.apache.org Subject: Re: Scan and display entire row The Key (http://accumulo.apache.org/1.4/apidocs/org/apache/accumulo/core/da= ta/Key.html) has methods to get the row, column family, and column qualifie= r, so that would give you all the information you see printed in the Accumu= lo shell. Like John says, the Key is not just a row ID. See the "Data Mode= l" section at http://accumulo.apache.org/1.4/user_manual/Accumulo_Design.h= tml for a visual representation of a Key in Accumulo. On Thu, May 24, 2012 at 7:49 AM, John Armstrong > wrote: On 05/24/2012 09:42 AM, Colclough, Christopher M. wrote: I've written a scanner to return the map of pairs, but it returns only the table key:table value. I'd like to have it return the entire row from the table, just like the scan operator does when using the Accumulo shell. What class/method should I use to do this? I'm not sure what you mean. Can you give an example of the behavior you're= seeing and the behavior you want? Accumulo tables are (basically) big sorted maps of (Key, Value) pairs, wher= e the Keys have a certain structure and native sort order. Scanners return= some collection of such pairs. --_000_0BBD8C9342CBA343AE2C91D32990988C45542B9246aplesstripedo_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

That̵= 7;s it!  I failed to look at all the method supplied by the Key object= . 

Thanks to allR= 30;

 

From: Jared winick [mailto:jaredwinick@gm= ail.com]
Sent: Thursday, May 24, 2012 10:02 AM
To: use= r@accumulo.apache.org
Subject: Re: Scan and display entire row

 

The Key (http://= accumulo.apache.org/1.4/apidocs/org/apache/accumulo/core/data/Key.html)= has methods to get the row, column family, and column qualifier, so that w= ould give you all the information you see printed in the Accumulo shell. &n= bsp;Like John says, the Key is not just a row ID. See the "Data Model&= quot; section at  http://accumulo.apache.org/1.4/user_manual/Accumulo= _Design.html  for a visual representation of a Key in Accumulo.&nb= sp;

On Thu, May 24, 2012 at 7:49 AM= , John Armstrong <jrj= a@ccri.com> wrote:

On 05/24/= 2012 09:42 AM, Colclough, Christopher M. wrote:

I’ve written a scanner to return the map of <Key,Value>= pairs, but it
returns only the table key:table value. I’d like to= have it return the
entire row from the table, just like the scan operat= or does when using
the Accumulo shell. What class/method should I use to= do this?

 

I'm not sure what you mean.  Can you give an example= of the behavior you're seeing and the behavior you want?

Accumulo t= ables are (basically) big sorted maps of (Key, Value) pairs, where the Keys= have a certain structure and native sort order.  Scanners return some= collection of such pairs.

&n= bsp;

= --_000_0BBD8C9342CBA343AE2C91D32990988C45542B9246aplesstripedo_--