Custom Iterator output

2015-04-17 Thread shweta.agrawal
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

Re: Custom Iterator output

2015-04-17 Thread dlmarion
via the getTopKey() and getTopValue() methods. [1] should be a simple example. [1] https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=blob;f=core/src/main/java/org/apache/accumulo/core/iterators/user/GrepIterator.java;h=043a729a778fc34d2ee87a0227056ffac81b7fe7;hb=refs/heads/master

Re: Custom Iterator output

2015-04-17 Thread Dylan Hutchison
Hi Vaibhav, It sounds like you want to emit a single value that is a function of all the entries in the parent iterator. In that case, the following template should solve your problem, using the example of summing Values interpreted as Longs: /** * Emit one value that is a function of entries

Re: Custom Iterator output

2015-04-17 Thread vaibhav thapliyal
Hi, 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