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

Method compareKeys

bolt/exec/HashTable.cpp:389–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388template <bool ignoreNullKeys>
389bool HashTable<ignoreNullKeys>::compareKeys(
390 const char* group,
391 HashLookup& lookup,
392 vector_size_t row) {
393 int32_t numKeys = lookup.hashers.size();
394 // The loop runs at least once. Allow for first comparison to fail
395 // before loop end check.
396 int32_t i = 0;
397 do {
398 auto& hasher = lookup.hashers[i];
399 if (!rows_->equals<!ignoreNullKeys>(
400 group, rows_->columnAt(i), hasher->decodedVector(), row)) {
401 return false;
402 }
403 } while (++i < numKeys);
404 return true;
405}
406
407template <bool ignoreNullKeys>
408bool HashTable<ignoreNullKeys>::compareKeys(

Callers

nothing calls this directly

Calls 5

columnAtMethod · 0.80
strMethod · 0.80
sizeMethod · 0.45
compareMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected