Skip to main content

hash_field_bytes

Function hash_field_bytes 

Source
pub fn hash_field_bytes(buf: &[u8], range: (usize, usize)) -> u64
Expand description

Hash the raw bytes of a MessagePack value at range within buf. Uses a fast non-cryptographic hash suitable for hash joins and GROUP BY.

For canonical-encoded documents (integers in smallest form, sorted keys), semantically equal values produce identical byte sequences and thus identical hashes.