/** * @param b value * @param length length of the value * @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, final int length) { return WritableComparator.hashBytes(b, length); }
@Override public int hashCode() { return WritableComparator.hashBytes(identifier, identifier.length); }
@Override public int hashCode() { return WritableComparator.hashBytes(bytes, length); }
/** Compute hash for binary data. */ public static int hashBytes(byte[] bytes, int length) { return hashBytes(bytes, 0, length); }
@Override public int hashCode() { return WritableComparator.hashBytes(keyBuffer, 0, getKeyLength()); } }
/** * Return a hash of the bytes returned from {#getBytes()}. * @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int) */ @Override public int hashCode() { return WritableComparator.hashBytes(getBytes(), getLength()); }
@Override public int hashCode() { return WritableComparator.hashBytes(ba.bytes(), ba.length()); }
@Override public int hashCode() { return WritableComparator.hashBytes(row, row.length) + WritableComparator.hashBytes(colFamily, colFamily.length) + WritableComparator.hashBytes(colQualifier, colQualifier.length) + WritableComparator.hashBytes(colVisibility, colVisibility.length) + (int) (timestamp ^ (timestamp >>> 32)); }
private static int hash(byte[] b) { if (b == null) return 0; return WritableComparator.hashBytes(b, b.length); }
@Override public int hashCode() { return WritableComparator.hashBytes(value, this.value.length); }
@Override public int hashCode() { return WritableComparator.hashBytes(row, row.length) + WritableComparator.hashBytes(colFamily, colFamily.length) + WritableComparator.hashBytes(colQualifier, colQualifier.length) + WritableComparator.hashBytes(colVisibility, colVisibility.length) + (int) (timestamp ^ (timestamp >>> 32)); }
/** * @param b value * @param length length of the value * @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, final int length) { return WritableComparator.hashBytes(b, length); }
/** * @param b value * @param length length of the value * @return Runs {@link WritableComparator#hashBytes(byte[], int)} on the * passed in array. This method is what {@link org.apache.hadoop.io.Text} and * {@link ImmutableBytesWritable} use calculating hash code. */ public static int hashCode(final byte [] b, final int length) { return WritableComparator.hashBytes(b, length); }
private static int hash(byte[] b) { if (b == null) return 0; return WritableComparator.hashBytes(b, b.length); }
/** * @param b value * @param length length of the value * @return Runs {@link org.apache.hadoop.io.WritableComparator#hashBytes(byte[], int)} on the * passed in array. This method is what {@link org.apache.hadoop.io.Text} and * {@link org.apache.hadoop.hbase.io.ImmutableBytesWritable} use calculating hash code. */ public static int hashCode(final byte[] b, final int length) { return WritableComparator.hashBytes(b, length); }
/** * @param b value * @param length length of the value * @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, final int length) { return WritableComparator.hashBytes(b, length); }
/** * @param b value * @param length length of the value * @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, final int length) { return WritableComparator.hashBytes(b, length); }
@Override public int hashCode() { return WritableComparator.hashBytes(keyBuffer, getKeyLength()); } }
/** * Return a hash of the bytes returned from {#getBytes()}. * @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int) */ public int hashCode() { return WritableComparator.hashBytes(getBytes(), getLength()); }
@Override public int hashCode() { return WritableComparator.hashBytes(blockBuffer, getKeyOffset(), getKeyLength()); } }