org.apache.hadoop.record.Buffer.compareTo()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(81)

本文整理了Java中org.apache.hadoop.record.Buffer.compareTo()方法的一些代码示例,展示了Buffer.compareTo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.compareTo()方法的具体详情如下:
包路径:org.apache.hadoop.record.Buffer
类名称:Buffer
方法名:compareTo

Buffer.compareTo介绍

[英]Define the sort order of the Buffer.
[中]定义缓冲区的排序顺序。

代码示例

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

@Override
public boolean equals(Object other) {
 if (other instanceof Buffer && this != other) {
  return compareTo(other) == 0;
 }
 return (this == other);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

public boolean equals(Object other) {
 if (other instanceof Buffer && this != other) {
  return compareTo(other) == 0;
 }
 return (this == other);
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
public boolean equals(Object other) {
 if (other instanceof Buffer && this != other) {
  return compareTo(other) == 0;
 }
 return (this == other);
}

代码示例来源:origin: org.apache.hadoop/hadoop-streaming

@Override
public boolean equals(Object other) {
 if (other instanceof Buffer && this != other) {
  return compareTo(other) == 0;
 }
 return (this == other);
}

代码示例来源:origin: io.hops/hadoop-common

@Override
public boolean equals(Object other) {
 if (other instanceof Buffer && this != other) {
  return compareTo(other) == 0;
 }
 return (this == other);
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

public boolean equals(Object other) {
 if (other instanceof Buffer && this != other) {
  return compareTo(other) == 0;
 }
 return (this == other);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

@Override
public boolean equals(Object other) {
 if (other instanceof Buffer && this != other) {
  return compareTo(other) == 0;
 }
 return (this == other);
}

代码示例来源:origin: org.apache.hadoop/hadoop-common-test

public int compareTo (final Object _rio_peer_) throws ClassCastException {
 if (!(_rio_peer_ instanceof RecBuffer)) {
  throw new ClassCastException("Comparing different types of records.");
 }
 RecBuffer _rio_peer = (RecBuffer) _rio_peer_;
 int _rio_ret = 0;
 _rio_ret = data.compareTo(_rio_peer.data);
 if (_rio_ret != 0) return _rio_ret;
 return _rio_ret;
}
public boolean equals(final Object _rio_peer_) {

代码示例来源:origin: org.apache.hadoop/hadoop-common-test

_rio_ret = stringVal.compareTo(_rio_peer.stringVal);
if (_rio_ret != 0) return _rio_ret;
_rio_ret = bufferVal.compareTo(_rio_peer.bufferVal);
if (_rio_ret != 0) return _rio_ret;

相关文章