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

Method WriteChildren

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

Source from the content-addressed store, hash-verified

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