copybytes专题

BytesWritable 的copyBytes和getBytes的区别

BytesWritable value = new BytesWritable(); BytesWritable不能作为mapreduce中的key或者value,与ByteWritable不同。1,BytesWritable.tobyte()//将ByteWritable类型的数据转换为十六进制对,并以空格分开;2,BytesWritable.set(byte[] newData,int of