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

Method GetOrInsertNull

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

Source from the content-addressed store, hash-verified

468
469 template <typename Func1, typename Func2>
470 int32_t GetOrInsertNull(Func1&& on_found, Func2&& on_not_found) {
471 int32_t memo_index = GetNull();
472 if (memo_index != kKeyNotFound) {
473 on_found(memo_index);
474 } else {
475 null_index_ = memo_index = size();
476 on_not_found(memo_index);
477 }
478 return memo_index;
479 }
480
481 int32_t GetOrInsertNull() {
482 return GetOrInsertNull([](int32_t i) {}, [](int32_t i) {});

Callers 3

AssertGetOrInsertNullFunction · 0.45
DoAppendMethod · 0.45
AddArrayValueSetMethod · 0.45

Calls 1

sizeFunction · 0.50

Tested by 1

AssertGetOrInsertNullFunction · 0.36