MCPcopy Create free account
hub / github.com/apache/arrow / InitHasMatchIfNeeded

Method InitHasMatchIfNeeded

cpp/src/arrow/acero/hash_join.cc:694–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692 }
693
694 void InitHasMatchIfNeeded(ThreadLocalState* local_state) {
695 if (local_state->is_has_match_initialized) {
696 return;
697 }
698 if (!hash_table_empty_) {
699 int32_t num_rows = hash_table_keys_.num_rows();
700 local_state->has_match.resize(bit_util::BytesForBits(num_rows));
701 memset(local_state->has_match.data(), 0, bit_util::BytesForBits(num_rows));
702 }
703 local_state->is_has_match_initialized = true;
704 }
705
706 void MergeHasMatch() {
707 if (hash_table_empty_) {

Callers

nothing calls this directly

Calls 4

BytesForBitsFunction · 0.85
resizeMethod · 0.80
num_rowsMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected