summaryContext

Object Description

Holds statistics regarding execution of a map/reduce script.

This object includes the following properties:

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.

          ...
function summarize(summary)
{
    var type = summary.toString();
    log.audit(type + ' Usage Consumed', summary.usage);
    log.audit(type + ' Concurrency Number ', summary.concurrency);
    log.audit(type + ' Number of Yields', summary.yields);
    var contents = '';
    summary.output.iterator().each(function (key, value)
        {
            contents += (key + ' ' + value + '\n');
             return true;
        });
... 

        

Related Topics

General Notices