summaryContext.mapSummary
Object Description |
Holds statistics regarding the map stage |
Since |
2015.2 |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see Map/Reduce Script Samples.
...
logMetrics(summary.mapSummary);
var mapKeys = [];
summary.mapSummary.keys.iterator().each(function (key)
{
mapKeys.push(key);
return true;
});
log.audit('MAP keys processed', mapKeys);
summary.mapSummary.errors.iterator().each(function (key, error)
{
log.error('Map Error for key: ' + key, error);
return true;
});
...