MCPcopy Create free account
hub / github.com/bytedance/bolt / hashPrecomputed

Method hashPrecomputed

bolt/exec/VectorHasher.cpp:555–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555void VectorHasher::hashPrecomputed(
556 const SelectivityVector& rows,
557 bool mix,
558 raw_vector<uint64_t>& result) const {
559 rows.applyToSelected([&](vector_size_t row) {
560 result[row] =
561 mix ? bits::hashMix(result[row], precomputedHash_) : precomputedHash_;
562 });
563}
564
565void VectorHasher::precompute(const BaseVector& value) {
566 if (value.isNullAt(0)) {

Callers 3

partitionMethod · 0.80
TEST_FFunction · 0.80

Calls 2

hashMixFunction · 0.85
applyToSelectedMethod · 0.80

Tested by 1

TEST_FFunction · 0.64