Compute the hash for all values in the array.
This currently only works with the AHash RandomState hasher builder.
332
333
334
335
336
337
338
339
340
341
342
343
fn vec_hash(&self, random_state: RandomState, buf: &mut Vec<u64>) {
self.bit_repr_small().vec_hash(random_state, buf)
}
fn vec_hash_combine(&self, random_state: RandomState, hashes: &mut [u64]) {
self.bit_repr_small().vec_hash_combine(random_state, hashes)
}
}
impl VecHash for Float64Chunked {
fn vec_hash(&self, random_state: RandomState, buf: &mut Vec<u64>) {
self.bit_repr_large().vec_hash(random_state, buf)
}
More examples
Hide additional examples
src/series/implementations/boolean.rs (
line 54)
53
54
55
56
fn vec_hash(&self, random_state: RandomState, buf: &mut Vec<u64>) -> PolarsResult<()> {
self.0.vec_hash(random_state, buf);
Ok(())
}
src/series/implementations/object.rs (
line 47)
46
47
48
49
fn vec_hash(&self, random_state: RandomState, buf: &mut Vec<u64>) -> PolarsResult<()> {
self.0.vec_hash(random_state, buf);
Ok(())
}
src/series/implementations/utf8.rs (
line 52)
51
52
53
54
fn vec_hash(&self, random_state: RandomState, buf: &mut Vec<u64>) -> PolarsResult<()> {
self.0.vec_hash(random_state, buf);
Ok(())
}
src/series/implementations/categorical.rs (
line 96)
95
96
97
98
fn vec_hash(&self, random_state: RandomState, buf: &mut Vec<u64>) -> PolarsResult<()> {
self.0.logical().vec_hash(random_state, buf);
Ok(())
}
336
337
338
339
340
341
342
343
344
345
346
fn vec_hash_combine(&self, random_state: RandomState, hashes: &mut [u64]) {
self.bit_repr_small().vec_hash_combine(random_state, hashes)
}
}
impl VecHash for Float64Chunked {
fn vec_hash(&self, random_state: RandomState, buf: &mut Vec<u64>) {
self.bit_repr_large().vec_hash(random_state, buf)
}
fn vec_hash_combine(&self, random_state: RandomState, hashes: &mut [u64]) {
self.bit_repr_large().vec_hash_combine(random_state, hashes)
}
More examples
Hide additional examples
src/series/implementations/boolean.rs (
line 59)
58
59
60
61
fn vec_hash_combine(&self, build_hasher: RandomState, hashes: &mut [u64]) -> PolarsResult<()> {
self.0.vec_hash_combine(build_hasher, hashes);
Ok(())
}
src/series/implementations/object.rs (
line 52)
51
52
53
54
fn vec_hash_combine(&self, build_hasher: RandomState, hashes: &mut [u64]) -> PolarsResult<()> {
self.0.vec_hash_combine(build_hasher, hashes);
Ok(())
}
src/series/implementations/utf8.rs (
line 57)
56
57
58
59
fn vec_hash_combine(&self, build_hasher: RandomState, hashes: &mut [u64]) -> PolarsResult<()> {
self.0.vec_hash_combine(build_hasher, hashes);
Ok(())
}
src/series/implementations/categorical.rs (
line 101)
100
101
102
103
fn vec_hash_combine(&self, build_hasher: RandomState, hashes: &mut [u64]) -> PolarsResult<()> {
self.0.logical().vec_hash_combine(build_hasher, hashes);
Ok(())
}