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

Function BoxSizes

cpp/src/arrow/array/array_nested.cc:368–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368std::shared_ptr<Array> BoxSizes(const std::shared_ptr<DataType>& boxed_type,
369 const ArrayData& data) {
370 DCHECK(is_list_view(data.type->id()));
371 std::vector<std::shared_ptr<Buffer>> buffers = {nullptr, data.buffers[2]};
372 auto sizes_data =
373 std::make_shared<ArrayData>(boxed_type, data.length, std::move(buffers),
374 /*null_count=*/0, data.offset);
375 return MakeArray(sizes_data);
376}
377
378template <typename DestListViewType, typename SrcListType>
379Result<std::shared_ptr<ArrayData>> ListViewFromListImpl(

Callers 1

sizesMethod · 0.85

Calls 3

MakeArrayFunction · 0.70
is_list_viewFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected