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

Function CreateEmptyArray

r/src/array_to_vector.cpp:195–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195std::shared_ptr<Array> CreateEmptyArray(const std::shared_ptr<DataType>& array_type) {
196 std::unique_ptr<arrow::ArrayBuilder> builder;
197 StopIfNotOk(arrow::MakeBuilder(gc_memory_pool(), array_type, &builder));
198
199 std::shared_ptr<arrow::Array> array;
200 StopIfNotOk(builder->Finish(&array));
201 return array;
202}
203
204template <typename Type>
205class Converter_Int : public Converter {

Callers 1

Converter_DictionaryMethod · 0.85

Calls 4

StopIfNotOkFunction · 0.85
gc_memory_poolFunction · 0.85
MakeBuilderFunction · 0.50
FinishMethod · 0.45

Tested by

no test coverage detected