MCPcopy Create free account
hub / github.com/apache/datafusion / combine_hashes

Function combine_hashes

datafusion/common/src/hash_utils.rs:50–53  ·  view source on GitHub ↗
(l: u64, r: u64)

Source from the content-addressed store, hash-verified

48// Combines two hashes into one hash
49#[inline]
50pub fn combine_hashes(l: u64, r: u64) -> u64 {
51 let hash = (17 * 37u64).wrapping_add(l);
52 hash.wrapping_mul(37).wrapping_add(r)
53}
54
55/// Maximum size for the thread-local hash buffer before truncation (4MB = 524,288 u64 elements).
56/// The goal of this is to avoid unbounded memory growth that would appear as a memory leak.

Callers 12

combineMethod · 0.85
hash_nullFunction · 0.85
hash_arrayFunction · 0.85
hash_dictionary_innerFunction · 0.85
hash_struct_arrayFunction · 0.85
hash_map_arrayFunction · 0.85
hash_list_arrayFunction · 0.85
hash_list_view_arrayFunction · 0.85
hash_union_array_defaultFunction · 0.85
hash_sparse_union_arrayFunction · 0.85
hash_fixed_list_arrayFunction · 0.85
hash_run_array_innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…