| 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) {}); |
nothing calls this directly
no test coverage detected