Skip to main content

hash_bytes_partition

Function hash_bytes_partition 

Source
pub fn hash_bytes_partition(bytes: &[u8], num_partitions: u64) -> u64
Expand description

Compute the partition index for pre-serialized key bytes.

Shared primitive behind hash_row_partition and join-key partitioning so both sides of a Grace Hash Join agree on partition assignment.