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