An iterator over intermediate values for use with mapreduce
The mapreduce
function automatically creates a
ValueIterator
object during execution and uses it to store the
values associated with each unique intermediate key added by the map function. Although
you never need to explicitly create a ValueIterator
object to use
mapreduce
, you do need to interact with this object in the
reduce function. Use the hasnext
and getnext
object functions to retrieve the values associated with each unique key in the
intermediate KeyValueStore
object.
The mapreduce
function automatically creates
ValueIterator
objects during execution.