accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colclough, Christopher M." <>
Subject RE: Scan and display entire row
Date Thu, 24 May 2012 14:53:06 GMT
That's it!  I failed to look at all the method supplied by the Key object.
Thanks to all...

From: Jared winick []
Sent: Thursday, May 24, 2012 10:02 AM
Subject: Re: Scan and display entire row

The Key ( 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
 for a visual representation of a Key in Accumulo.
On Thu, May 24, 2012 at 7:49 AM, John Armstrong <<>>
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.

View raw message