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

Method LoadListView

cpp/src/arrow/ipc/reader.cc:378–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376
377 template <typename TYPE>
378 Status LoadListView(const TYPE& type) {
379 out_->buffers.resize(3);
380
381 RETURN_NOT_OK(LoadCommon(type.id()));
382 RETURN_NOT_OK(GetBuffer(buffer_index_++, &out_->buffers[1]));
383 RETURN_NOT_OK(GetBuffer(buffer_index_++, &out_->buffers[2]));
384
385 const int num_children = type.num_fields();
386 if (num_children != 1) {
387 return Status::Invalid("Wrong number of children: ", num_children);
388 }
389
390 return LoadChildren(type.fields());
391 }
392
393 Status LoadChildren(const std::vector<std::shared_ptr<Field>>& child_fields) {
394 DCHECK_NE(out_, nullptr);

Callers

nothing calls this directly

Calls 6

GetBufferFunction · 0.85
resizeMethod · 0.80
InvalidFunction · 0.50
idMethod · 0.45
num_fieldsMethod · 0.45
fieldsMethod · 0.45

Tested by

no test coverage detected