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

Method GetOrInsertNull

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

Source from the content-addressed store, hash-verified

731
732 template <typename Func1, typename Func2>
733 int32_t GetOrInsertNull(Func1&& on_found, Func2&& on_not_found) {
734 int32_t memo_index = GetNull();
735 if (memo_index == kKeyNotFound) {
736 memo_index = null_index_ = size();
737 ARROW_DCHECK_OK(binary_builder_.AppendNull());
738 on_not_found(memo_index);
739 } else {
740 on_found(memo_index);
741 }
742 return memo_index;
743 }
744
745 int32_t GetOrInsertNull() {
746 return GetOrInsertNull([](int32_t i) {}, [](int32_t i) {});

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.50
AppendNullMethod · 0.45

Tested by

no test coverage detected