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

Function MakeDictionaryBuilder

cpp/src/arrow/builder.cc:374–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374Status 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

Callers

nothing calls this directly

Calls 3

index_typeMethod · 0.80
value_typeMethod · 0.45
MakeMethod · 0.45

Tested by

no test coverage detected