本文整理了Java中org.apache.hadoop.hbase.util.Bytes.hashCode()
方法的一些代码示例,展示了Bytes.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bytes.hashCode()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.util.Bytes
类名称:Bytes
方法名:hashCode
暂无
代码示例来源:origin: apache/hbase
/**
* @param b bytes to hash
* @return A hash of <code>b</code> as an Integer that can be used as key in
* Maps.
*/
public static Integer mapKey(final byte [] b) {
return hashCode(b);
}
代码示例来源:origin: apache/hbase
/**
* @param b bytes to hash
* @param length length to hash
* @return A hash of <code>b</code> as an Integer that can be used as key in
* Maps.
*/
public static Integer mapKey(final byte [] b, final int length) {
return hashCode(b, length);
}
代码示例来源:origin: apache/hbase
/**
* @param b bytes to hash
* @return Runs {@link WritableComparator#hashBytes(byte[], int)} on the
* passed in array. This method is what {@link org.apache.hadoop.io.Text}
* use calculating hash code.
*/
public static int hashCode(final byte [] b) {
return hashCode(b, b.length);
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Bytes.hashCode(this.stopRowKey);
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
int h = 31;
h = h + 13 * Bytes.hashCode(this.family);
h = h + 13 * Bytes.hashCode(this.qualifier);
return h;
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Objects.hash(Bytes.hashCode(this.stopRow),
Bytes.hashCode(this.startRow),
this.startRowInclusive,
this.stopRowInclusive);
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
int result = Bytes.hashCode(name);
result ^= (int) COLUMN_DESCRIPTOR_VERSION;
result ^= values.hashCode();
result ^= configuration.hashCode();
return result;
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return columnOffset == null ? Objects.hash(this.limit, this.offset) :
Objects.hash(this.limit, Bytes.hashCode(this.columnOffset));
}
}
代码示例来源:origin: apache/hbase
/**
* @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0.
* No replacement.
*/
@Deprecated
@Override
public int hashCode() {
// TODO: This is wrong. Can't have two gets the same just because on same row. But it
// matches how equals works currently and gets rid of the findbugs warning.
return Bytes.hashCode(this.getRow());
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
int result = Bytes.hashCode(this.encodedRegionName);
result = (int) (result ^ getSequenceId());
result = (int) (result ^ this.writeTime);
return result;
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
// TODO: This is wrong. Can't have two gets the same just because on same row. But it
// matches how equals works currently and gets rid of the findbugs warning.
return Bytes.hashCode(this.getRow());
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Bytes.hashCode(this.getPrefix());
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Bytes.hashCode(this.getPrefix());
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
int ret = 17 + getPath().hashCode() * 31;
return ret * 31 + Bytes.hashCode(data);
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
int ret = getPath().hashCode();
ret = ret * 31 + Bytes.hashCode(data);
return ret * 31 + Integer.hashCode(version);
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Objects.hash(Bytes.hashCode(getMinColumn()), getMinColumnInclusive(),
Bytes.hashCode(getMaxColumn()), getMaxColumnInclusive());
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Objects.hash(Bytes.hashCode(getFamily()), Bytes.hashCode(getQualifier()),
getCompareOperator(), getComparator());
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Objects.hash(Bytes.hashCode(getFamily()), Bytes.hashCode(getQualifier()),
this.op, getComparator(), getFilterIfMissing(), getLatestVersionOnly());
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return Objects.hash(Bytes.hashCode(getFamily()), Bytes.hashCode(getQualifier()),
dropDependentColumn(), getComparator(), getCompareOperator());
}
}
代码示例来源:origin: apache/hbase
public void testNullHashCode() {
byte [] b = null;
Exception ee = null;
try {
Bytes.hashCode(b);
} catch (Exception e) {
ee = e;
}
assertNotNull(ee);
}
内容来源于网络,如有侵权,请联系作者删除!