accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vaibhav thapliyal <>
Subject Re: Custom Iterator output
Date Sat, 18 Apr 2015 00:05:15 GMT

I also had this query that might be similar to shweta.

What I want to do is process the key value pairs that I get from
getTopKey() and getTopValue() methods and I want to output that value.

Currently I was writing these values to tables from inside the iterators,
but I read in the new manual that says that doing this isn't a good

For eg:

If I have these entries in my table:

1 cf1:cq1 value1
2 cf2:cq2 value2
3 cf3:cq3 value3
And suppose I sum the values(or do any opeation) of the row ids using the
values that I get from the getTopKey().getRow() function and store this sum
in a variable called "sum".

So I want to output this variable. How do I go about this?

On 17-Apr-2015 6:40 pm, <> wrote:

> via the getTopKey() and getTopValue() methods. [1] should be a simple
> example.
> [1]
> ------------------------------
> *From: *"shweta.agrawal" <>
> *To: *
> *Sent: *Friday, April 17, 2015 8:50:26 AM
> *Subject: *Custom Iterator output
> Hi,
> I am working on custom iterator. I want to know, how do i get the output
> from the custom iterators?
> Thanks and Regards
> Shweta

View raw message