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

Function CreateEmptyArray

r/src/array_to_vector.cpp:160–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160std::shared_ptr<Array> CreateEmptyArray(const std::shared_ptr<DataType>& array_type) {
161 std::unique_ptr<arrow::ArrayBuilder> builder;
162 StopIfNotOk(arrow::MakeBuilder(gc_memory_pool(), array_type, &builder));
163
164 std::shared_ptr<arrow::Array> array;
165 StopIfNotOk(builder->Finish(&array));
166 return array;
167}
168
169template <typename Type>
170class Converter_Int : public Converter {

Callers 3

Converter_DictionaryMethod · 0.85
AllocateMethod · 0.85
AllocateMethod · 0.85

Calls 4

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

Tested by

no test coverage detected