Hi,

I am working with shweta, I have a similar query as shweta.

@william
i am not doing similar to WholeRowIterator. I am calculating sum(count) of each unique columnQualifier.

@josh
If after hasTop and getTopKey, seek would have called then this should also be written in call hierarchy.
Because i have written all the function hierarchy in a file.
so the problem if i have called myFunction() in seek.
And after seek getTopKey and getTopValue then hasTop and next should be called but what is happening sometime getTopValue is called sometime not. This is happening when i am reading entries through batchscanner. getTopValue function is called while scanning through scanner, Applying same iterator using scanner and batchsacnner, through scanner getting returned entries but getting no entries returned while using batchscanner.

So can you please explain.

Thanks
Madhvi


On Friday 12 June 2015 09:07 PM, Josh Elser wrote:
Possible explanation inline

shweta.agrawal wrote:
Hi,

I am making a custom iterator which returns multiple entries. For some
entries getTopValue function is called, sometimes skipped. Due to this
behaviour i am not getting all the entries at scan time which are to be
returned.

I had written functions calling hierarchy in a text file which is:
hasTop
getTopKey

A seek() might have happened here. Would explain why you there was no getTopValue.

hasTop
getTopKey
getTopValue

After the seek, we checked to see that there was a K/V and then polled it

next

We then tried to advance the "pointer" to the next K/V

hasTop

And checked to see if we have another pair.


Thanks
Shweta



Reply via email to