Modules
Objects/Functions
SuiteScript 2.0
task.MapReduceStage.{|GET_INPUT,MAP,SHUFFLE,REDUCE,SUMMARIZE|}
N/task Module
task.MapReduceStage
Enum Description:
Enumeration that holds the string values for possible stages in task.MapReduceScriptTask for a map/reduce script.
This enum is returned by MapReduceScriptTaskStatus.stage.
For general information about map/reduce stages, see Map/Reduce Key Concepts and SuiteScript 2.0 Map/Reduce Script Stages.
JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/task Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=task.MapReduceStage
Example:
// Code Example 1
//Add additional code
//...
if (summary.stage === task.MapReduceStage.SUMMARIZE)
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345808152.html