| 372 | } |
| 373 | |
| 374 | Status MakeDictionaryBuilder(MemoryPool* pool, const std::shared_ptr<DataType>& type, |
| 375 | const std::shared_ptr<Array>& dictionary, |
| 376 | std::unique_ptr<ArrayBuilder>* out) { |
| 377 | const auto& dict_type = static_cast<const DictionaryType&>(*type); |
| 378 | DictionaryBuilderCase visitor = {pool, |
| 379 | dict_type.index_type(), |
| 380 | dict_type.value_type(), |
| 381 | dictionary, |
| 382 | /*exact_index_type=*/false, |
| 383 | dict_type.ordered(), |
| 384 | out}; |
| 385 | return visitor.Make(); |
| 386 | } |
| 387 | |
| 388 | } // namespace arrow |
nothing calls this directly
no test coverage detected