| 329 | } |
| 330 | |
| 331 | Status MakeDictionaryBuilder(MemoryPool* pool, const std::shared_ptr<DataType>& type, |
| 332 | const std::shared_ptr<Array>& dictionary, |
| 333 | std::unique_ptr<ArrayBuilder>* out) { |
| 334 | const auto& dict_type = static_cast<const DictionaryType&>(*type); |
| 335 | DictionaryBuilderCase visitor = { |
| 336 | pool, dict_type.index_type(), dict_type.value_type(), |
| 337 | dictionary, /*exact_index_type=*/false, out}; |
| 338 | return visitor.Make(); |
| 339 | } |
| 340 | |
| 341 | } // namespace arrow |
nothing calls this directly
no test coverage detected