I have a map functions as:
emit(this_id,this),
now I want to iterate through each key in the reduce function,is their a way I can proceed with this problem, having no clue how to proceed.
I have a map functions as:
emit(this_id,this),
now I want to iterate through each key in the reduce function,is their a way I can proceed with this problem, having no clue how to proceed.
The reduce function operates on a set of some (not necessarily all) entries which were found to have the same key. You can not iterate through all keys at this point, because the reduce functions are distributed. A host of your database might not even know about some keys because they are processed on another cluster. So whatever you attempt to do, it won't work that way.
You don't explain what problem you actually want to solve, but your idea for a possible solution seems to go into the wrong direction. I would recommend you to create a new question explaining your actual problem and seeing what stackoverflow can come up with.