reduceContext

Object Description

Contains the key-value pairs to process during the reduce stage.

This object includes the following properties and methods:

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 reduce(context)
{
    context.write({
        key: context.key , 
        value: context.values.length 
    }); 
}
... 

        

Related Topics

reduce(reduceContext)

General Notices