How can I get the result from reduce in a MapReduce job

#1

I’ve a MapReduce job that have the two phases map() and reduce(). The reduce phase returns a collection of objects which are not persistable.

How can I get the result from reduce phase?

I see that MapReduce jobs have a function results(limit): map<OutKeyType, [ OutValType ]>, so I guess what I have to do is wait until the job completes then call this function to get the job result, right? is there an asynchronous way?

If the returned objects type is persistable, will it be stored automatically or I have to call create/merge inside the reduce phase?

0 Likes

#2

If the OutValType is persistable, it will be stored automatically. You should not need to call create/merge in the reduce method.

2 Likes