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

Method MergeTable

cpp/src/arrow/util/hashing.h:535–544  ·  view source on GitHub ↗

defined here so that `HashTableType` is visible Merge entries from `other_table` into `this->hash_table_`.

Source from the content-addressed store, hash-verified

533 // defined here so that `HashTableType` is visible
534 // Merge entries from `other_table` into `this->hash_table_`.
535 Status MergeTable(const ScalarMemoTable& other_table) {
536 const HashTableType& other_hashtable = other_table.hash_table_;
537
538 other_hashtable.VisitEntries([this](const HashTableEntry* other_entry) {
539 int32_t unused;
540 ARROW_DCHECK_OK(this->GetOrInsert(other_entry->payload.value, &unused));
541 });
542 // TODO: ARROW-17074 - implement proper error handling
543 return Status::OK();
544 }
545};
546
547// ----------------------------------------------------------------------

Callers 1

MergeFromMethod · 0.45

Calls 3

GetOrInsertMethod · 0.95
VisitEntriesMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected