October 2018
Beginner
220 pages
5h 33m
English
Just like map(), the reducer() function reduces the input list of (key, value) pairs to the output list of (key,value) pairs. A Reducer function goes through three major phases all in one function:
Similar to Mapper, Reducer provides setup() and cleanup methods. Overall class structure of Reducer implementation may look like the following:
public class <YourClassName> extends Reducer<InputKeyClass,InputValueClass,OutputKeyClass,OutputValueClass> { protected void setup(Context context) { //setup related code goes here ...
Read now
Unlock full access