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

Method LoadChildren

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

Source from the content-addressed store, hash-verified

393 }
394
395 Status LoadChildren(const std::vector<std::shared_ptr<Field>>& child_fields) {
396 DCHECK_NE(out_, nullptr);
397 ArrayData* parent = out_;
398
399 parent->child_data.resize(child_fields.size());
400 for (int i = 0; i < static_cast<int>(child_fields.size()); ++i) {
401 parent->child_data[i] = std::make_shared<ArrayData>();
402 --max_recursion_depth_;
403 RETURN_NOT_OK(Load(child_fields[i].get(), parent->child_data[i].get()));
404 ++max_recursion_depth_;
405 }
406 out_ = parent;
407 return Status::OK();
408 }
409
410 Status Visit(const NullType& type) {
411 out_->buffers.resize(1);

Callers

nothing calls this directly

Calls 4

resizeMethod · 0.80
OKFunction · 0.50
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected