Hadoop 源码详解之RecordReader接口

1. 类释义

RecordReader reads <key, value> pairs from an InputSplit.
RecordReader 从InputSplit中读取<key,value> pairs 。

RecordReader, typically, converts the byte-oriented view of the input, provided by the InputSplit, and presents a record-oriented view for the Mapper and Reducer tasks for processing. It thus assumes the responsibility of processing record boundaries and presenting the tasks with keys and values.
RecordReader转换输入面向字节的视图,由InputSplit提供,并且展示一个面向记录的视图给 Mapper 以及 Reducer任务从而进行处理。它承担处理记录边界并且使用keys 和 values展示任务的责任。

2. 源码

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class RecordReader<KEYIN, VALUEIN> implements Closeable {
	...
}

3. 方法详解

Hadoop 源码详解之RecordReader接口

相关文章:

  • 2021-10-19
  • 2021-08-16
  • 2021-05-23
  • 2021-09-25
  • 2021-08-15
  • 2021-11-26
  • 2021-05-26
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2021-11-29
  • 2021-08-08
  • 2021-06-05
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案