That's it!  I failed to look at all the method supplied by the Key object.
Thanks to all...

From: Jared winick [mailto:[email protected]]
Sent: Thursday, May 24, 2012 10:02 AM
To: [email protected]
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 would 
give you all the information you see printed in the Accumulo shell.  Like John 
says, the Key is not just a row ID. See the "Data Model" section at  
http://accumulo.apache.org/1.4/user_manual/Accumulo_Design.html  for a visual 
representation of a Key in Accumulo.
On Thu, May 24, 2012 at 7:49 AM, John Armstrong 
<[email protected]<mailto:[email protected]>> 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 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, where 
the Keys have a certain structure and native sort order.  Scanners return some 
collection of such pairs.

Reply via email to