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

Method VisitArray

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

Source from the content-addressed store, hash-verified

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