Class HashUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.standby.codec.HashUtils
-
public class HashUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longhashMurmur32(byte mask, long length, byte[] data)Computes a MurmurHash3 hash value for the provided data components.
-
-
-
Method Detail
-
hashMurmur32
public static long hashMurmur32(byte mask, long length, byte[] data)Computes a MurmurHash3 hash value for the provided data components.This method combines a byte mask, a long length value, and a byte array into a single byte sequence using little-endian byte ordering, then computes a 32-bit MurmurHash3 hash of this sequence, returned as an unsigned long.
- Parameters:
mask- A byte value to include in the hash computationlength- A long value to include in the hash computation (stored in little-endian order)data- The byte array data to include in the hash computation- Returns:
- The computed MurmurHash3 value as an unsigned 32-bit integer converted to long
-
-