序列化
Hadoop使用自己的序列化格式Writable
Writable接口
1 | public interface Writable { |
以IntWritable为例
1 | IntWritable writable = new IntWritable(); |
其在进行读取和写入时
1 |
|
Hadoop使用自己的序列化格式Writable
1 | public interface Writable { |
以IntWritable为例
1 | IntWritable writable = new IntWritable(); |
其在进行读取和写入时
1 | @Override |