TextInputormat实现类
Textputormat是默认的FileInputFormat 实现类。按行读取每条记录。键是存储该行在整个文件中的其时字节偏移量,LongWritable类型。值是这行的内容,不包括任何行终止符(换行符和回车符)
示例如下:
一个的分片包含了如下4条文本记录
Rich learning form
Intelligent learning engine
Learing more convenient
From the real demand for more close to the enterprise
每条记录表示以下键值对
0, Rich learning form
19, Intelligent learning engine
47,Learing more convenient
72,From the real demand for more close to the enterprise