BinaryComparable.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:spark_deep 作者:
/**
 * Compare bytes from {#getBytes()}.
 * @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)
 */
public int compareTo(BinaryComparable other) {
  if (this == other)
    return 0;
  return WritableComparator.compareBytes(getBytes(), 0, getLength(),
           other.getBytes(), 0, other.getLength());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号