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

Function MakeDictionaryBuilder

cpp/src/arrow/builder.cc:337–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337Status 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

Callers

nothing calls this directly

Calls 3

index_typeMethod · 0.80
value_typeMethod · 0.45
MakeMethod · 0.45

Tested by

no test coverage detected