MCPcopy Create free account
hub / github.com/apache/arrow / MakeDictionaryBuilder

Function MakeDictionaryBuilder

cpp/src/arrow/builder.cc:331–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331Status 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

Callers

nothing calls this directly

Calls 3

index_typeMethod · 0.80
value_typeMethod · 0.45
MakeMethod · 0.45

Tested by

no test coverage detected