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

Method AllocateArrayData

cpp/src/arrow/c/bridge.cc:1847–1858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845 }
1846
1847 Status AllocateArrayData() {
1848 DCHECK_EQ(data_, nullptr);
1849 data_ = std::make_shared<ArrayData>(type_, c_struct_->length, c_struct_->null_count,
1850 c_struct_->offset);
1851 data_->buffers.resize(static_cast<size_t>(c_struct_->n_buffers));
1852 data_->child_data.resize(static_cast<size_t>(c_struct_->n_children));
1853 DCHECK_EQ(child_importers_.size(), data_->child_data.size());
1854 std::transform(child_importers_.begin(), child_importers_.end(),
1855 data_->child_data.begin(),
1856 [](const ArrayImporter& child) { return child.data_; });
1857 return Status::OK();
1858 }
1859
1860 Status ImportNullBitmap(int32_t buffer_id = 0) {
1861 RETURN_NOT_OK(ImportBitsBuffer(buffer_id, /*is_null_bitmap=*/true));

Callers

nothing calls this directly

Calls 5

resizeMethod · 0.80
OKFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected