lukeabbott
02/21/2019, 2:45 PMlukeabbott
02/21/2019, 2:45 PMERP Experts
02/21/2019, 2:49 PMERP Experts
02/21/2019, 2:49 PMlukeabbott
02/21/2019, 2:50 PMlukeabbott
02/21/2019, 2:50 PMlukeabbott
02/21/2019, 2:51 PMjkabot
02/21/2019, 3:29 PMKyle Johnson
02/21/2019, 5:14 PMKris Jones
02/21/2019, 5:40 PMKris Wood
02/21/2019, 7:07 PMKevin
02/21/2019, 7:07 PMKris Wood
02/21/2019, 7:08 PMKris Wood
02/21/2019, 7:08 PMeminero
02/21/2019, 7:11 PMKris Wood
02/21/2019, 7:12 PMKris Wood
02/21/2019, 7:15 PMKris Jones
02/21/2019, 7:16 PMKevin
02/21/2019, 7:18 PMgetInputData stage
, you write a function that returns an object that can be transformed into a list of key/value pairs. For example, if your function returns a search of NetSuite records, the system would run the search. The key/value pairs would be the results of the search: Each key would be the internal ID of a record. Each value would be a JSON representation of the record’s field IDs and values.
For the map stage
, you can optionally write a function that the system invokes one time for each key/value pair. If appropriate, your map function can write output data, in the form of new key/value pairs. If the script also uses a reduce function, this output data is sent as input to the shuffle and then the reduce stage. Otherwise, the new key/value pairs are sent directly to the summarize stage.
You do not write a function for the shuffle stage
. In this stage, the system sorts through any key/value pairs that were sent to the reduce stage, if a reduce function is defined. These pairs may have been provided by the map function, if a map function is used. If a map function was not used, the shuffle stage uses data provided by the getInputData stage. The shuffle stage groups this data by key to form a new set of key/value pairs, where each key is unique and each value is an array. For example, suppose 100 key/value pairs were sent. Suppose that each key represents an employee, and each value represents a record that the employee created. If there were only two unique employees, and one employee created 90 records, while another employee created 10 records, then the shuffle stage would provide two key/value pairs. The keys would be the IDs of the employees. One value would be an array of 90 elements, and the other would be an array of 10 elements.
For the reduce stage
, you write a function that is invoked one time for each key/value pair that was provided by the shuffle stage. Optionally, this function can write data as key/value pairs that are sent to the summarize stage.
In the summarize stage
, your function can retrieve and log statistics about the script’s work. It can also take actions with data sent by the reduce stage.eminero
02/21/2019, 7:18 PMKevin
02/21/2019, 7:22 PMeminero
02/21/2019, 7:25 PMKris Wood
02/21/2019, 7:29 PMerictgrubaugh
02/21/2019, 7:30 PMeminero
02/21/2019, 7:31 PMKris Wood
02/21/2019, 7:31 PMKC
02/21/2019, 8:54 PMAnkur Sanghi
02/21/2019, 9:09 PMcreece
02/21/2019, 9:10 PMAnkur Sanghi
02/21/2019, 9:13 PM