判官007 发表于 2016-12-10 06:25:13

org.apache.hadoop.io.RawComparator

对Comparator这个 类补充。提供了更高效的比较方法。对应m至关重要。
key和key 的比较也是在排序阶段完成的。
该接口允许其实现直接比较数据量中的的记录。 无需发序列化对象。

该方法提供了在字节层次的比较。从而减少了序列化和反序列化带来的代价。


方法名称:

public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2);
页: [1]
查看完整版本: org.apache.hadoop.io.RawComparator