摘要: org.apache.hadoop.io.WritableUtils 1 public static void writeVLong(DataOutput stream, long i) throws IOException 2 { 3 // 直接写数据 4 if (i >= -112 && i <= 127) { 5 stream.writeByte((byte) i); 6 return; 7 } 8 9 int len = -112;10 1... 阅读全文
posted @ 2012-08-16 16:12 rilley 阅读(414) 评论(0) 推荐(0) 编辑