![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hadoop
hfy779012303
这个作者很懒,什么都没留下…
展开
-
hadoop序列化自定义类型以及序列化对象比较解析
[code="java"]public static class Comparator extends WritableComparator { private static final Text.Comparator TEXT_COMPARATOR = new Text.Comparator(); public Comparator() { ...原创 2014-05-06 18:31:29 · 278 阅读 · 0 评论 -
hadoop序列化自定义类型以及序列化对象比较解析
super(TextPair.class); } @Override public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) { try { int firstL1 = WritableUtils.decodeVIntSize(b1[s1]) + readVInt(b1, s1);原创 2014-05-06 18:31:29 · 178 阅读 · 0 评论