Question - Mention the core methods of Reducer.
Answer -
The core methods of a Reducer are:
- setup(): setup is a method called just to configure different parameters for the reducer.
- reduce(): reduce is the primary operation of the reducer. The specific function of this method includes defining the task that has to be worked on for a distinct set of values that share a key.
- cleanup(): cleanup is used to clean or delete any temporary files or data after performing reduce() task.