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

Method VisitArray

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

Source from the content-addressed store, hash-verified

476 Status VisitArrayValues(const Array& arr) { return VisitArrayInline(arr, this); }
477
478 Status VisitArray(const std::string& name, const Array& arr) {
479 writer_->StartObject();
480 writer_->Key("name");
481 writer_->String(name);
482
483 writer_->Key("count");
484 writer_->Int(static_cast<int32_t>(arr.length()));
485
486 RETURN_NOT_OK(VisitArrayValues(arr));
487
488 writer_->EndObject();
489 return Status::OK();
490 }
491
492 void WriteRawNumber(std::string_view v) {
493 // Avoid RawNumber() as it misleadingly adds quotes

Callers

nothing calls this directly

Calls 7

OKFunction · 0.50
StartObjectMethod · 0.45
KeyMethod · 0.45
StringMethod · 0.45
IntMethod · 0.45
lengthMethod · 0.45
EndObjectMethod · 0.45

Tested by

no test coverage detected