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's not a functional example. For a complete script example, see SuiteScript 2.x Map/Reduce Script Code Samples.
...
function reduce(context)
{
context.write({
key: context.key ,
value: context.values.length
});
}
...