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

Method GetOrInsertNull

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

Source from the content-addressed store, hash-verified

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