Re: Custom Iterator output

2015-04-27 Thread vaibhav thapliyal
Thanks Dylan for the help. It helped me a lot. On 18-Apr-2015 10:43 am, "Dylan Hutchison" wrote: > 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, usin

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 f

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 manua

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 -