@Override
public DataInputBuffer getValue() throws IOException {
ByteArrayOutputStream dt = new ByteArrayOutputStream();
NullWritable key = NullWritable.get();
key.write(new DataOutputStream(dt));
DataInputBuffer result = new DataInputBuffer();
byte[] b = dt.toByteArray();
result.reset(b, 0, b.length);
return result;
}
TestGridMixClasses.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:hadoop
作者:
评论列表
文章目录