| 335 | } |
| 336 | |
| 337 | Status MakeDictionaryBuilder(MemoryPool* pool, const std::shared_ptr<DataType>& type, |
| 338 | const std::shared_ptr<Array>& dictionary, |
| 339 | std::unique_ptr<ArrayBuilder>* out) { |
| 340 | const auto& dict_type = static_cast<const DictionaryType&>(*type); |
| 341 | DictionaryBuilderCase visitor = {pool, |
| 342 | dict_type.index_type(), |
| 343 | dict_type.value_type(), |
| 344 | dictionary, |
| 345 | /*exact_index_type=*/false, |
| 346 | dict_type.ordered(), |
| 347 | out}; |
| 348 | return visitor.Make(); |
| 349 | } |
| 350 | |
| 351 | } // namespace arrow |
nothing calls this directly
no test coverage detected