Overview
Sorting out some basic interfaces and classes involved in the MapReduce framework.
Author: 木鸟杂记 https://www.qtmuniao.com, please indicate the source when reposting
File Reading and Writing Related
RecordReader: Reads key-value pairs from input files. Here, does it refer to the input for map or the input for reduce? The interface has three functions: next(Writable key, Writable value), getPos(), and close(). From this, the interface is similar to an abstract iterator. InputFormat implements this interface.
RecordWriter: Writes key-value pairs to output files. OutputFormat implements this interface. It contains the functions: write(WritableComparable key, Writable value) and close(Reporter reporter).
OutputCollector: Passed as a parameter to Mapper and Reducer to output result data. This interface has only one function: collect(key, val).
