@Override default long hashCode64(int rowIndex, LongHashFunction hash) { assert !isMissing(rowIndex); return hash.hashLong(Double.doubleToRawLongBits(this.asDouble(rowIndex))); }
@Override default long hashCode64(int rowIndex, LongHashFunction hash) { assert !isMissing(rowIndex); return hash.hashLong(Double.doubleToRawLongBits(this.getDouble(rowIndex))); }
@Override default long hashCode64(int rowIndex, LongHashFunction hash) { assert !isMissing(rowIndex); return hash.hashLong(Double.doubleToRawLongBits(this.asDouble(rowIndex))); }
int duplicate = pointsPerHost - 1; while (duplicate-- > 0) { hashOfHash = HASH_FUNCTION_0.hashLong(hashOfHash) & MASK; _buckets.add(new Bucket(entry.getKey(), hashOfHash, entry.getValue()));
static long getConfigurationId(final Collection<NodeId> identifiers, final Collection<Endpoint> endpoints) { long hash = 1; for (final NodeId id: identifiers) { hash = hash * 37 + HASH_FUNCTION.hashLong(id.getHigh()); hash = hash * 37 + HASH_FUNCTION.hashLong(id.getLow()); } for (final Endpoint endpoint : endpoints) { hash = hash * 37 + HASH_FUNCTION.hashChars(endpoint.getHostname()); hash = hash * 37 + HASH_FUNCTION.hashInt(endpoint.getPort()); } return hash; } }
@Override public long hashCode64(int rowIndex, LongHashFunction hash) { if (this.isMissing(rowIndex)) return MISSING_HASH_VALUE; switch (ObjectArrayColumn.this.description.kind) { case Json: case String: String str = this.getString(rowIndex); assert str != null; return hash.hashChars(str); case Date: Instant inst = this.getDate(rowIndex); assert inst != null; return hash.hashLong(Double.doubleToLongBits(Converters.toDouble(inst))); case Integer: return hash.hashInt(this.getInt(rowIndex)); case Double: return hash.hashLong(Double.doubleToLongBits(this.getDouble(rowIndex))); case Duration: Duration d = this.getDuration(rowIndex); assert d != null; return hash.hashLong(Double.doubleToLongBits(Converters.toDouble(d))); default: throw new RuntimeException("Unexpected data type"); } } }
@Override @SuppressWarnings("ConstantConditions") public long hashCode64(int rowIndex, LongHashFunction hash) { assert !isMissing(rowIndex); switch (this.description.kind) { case String: case Json: return hash.hashChars(this.getString(rowIndex)); case Integer: return hash.hashInt(this.getInt(rowIndex)); case Date: case Double: case Duration: return hash.hashLong(Double.doubleToRawLongBits(this.asDouble(rowIndex))); default: throw new RuntimeException("Unexpected kind " + this.description.kind); } }
mkRows.push(hash.hashLong(vw.hashCode()), currRow); if (comp.compare(minRow, currRow) > 0) minRow = currRow;