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

Method WriteChildren

cpp/src/arrow/integration/json_internal.cc:746–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744 }
745
746 Status WriteChildren(const FieldVector& fields,
747 const std::vector<std::shared_ptr<Array>>& arrays) {
748 // NOTE: the Java parser fails on an empty "children" member (ARROW-11483).
749 if (fields.size() == 0) return Status::OK();
750
751 writer_->Key("children");
752 writer_->StartArray();
753 for (auto [field, array] : Zip(fields, arrays)) {
754 RETURN_NOT_OK(VisitArray(field->name(), *array));
755 }
756 writer_->EndArray();
757 return Status::OK();
758 }
759
760 Status Visit(const NullArray& array) {
761 SetNoChildren();

Callers

nothing calls this directly

Calls 7

ZipClass · 0.85
OKFunction · 0.50
sizeMethod · 0.45
KeyMethod · 0.45
StartArrayMethod · 0.45
nameMethod · 0.45
EndArrayMethod · 0.45

Tested by

no test coverage detected