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

Method AppendValue

cpp/src/arrow/json/from_string.cc:677–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675 }
676
677 Status AppendValue(const rj::Value& json_obj) override {
678 if (json_obj.IsNull()) {
679 return this->AppendNull();
680 }
681 RETURN_NOT_OK(builder_->Append());
682 // Extend the child converter with this JSON array
683 RETURN_NOT_OK(child_converter_->AppendValues(json_obj));
684 if (json_obj.GetArray().Size() != static_cast<rj::SizeType>(list_size_)) {
685 return Status::Invalid("incorrect list size ", json_obj.GetArray().Size());
686 }
687 return Status::OK();
688 }
689
690 std::shared_ptr<ArrayBuilder> builder() override { return builder_; }
691

Callers

nothing calls this directly

Calls 8

OKFunction · 0.70
InvalidFunction · 0.50
IsNullMethod · 0.45
AppendNullMethod · 0.45
AppendMethod · 0.45
AppendValuesMethod · 0.45
SizeMethod · 0.45
GetArrayMethod · 0.45

Tested by

no test coverage detected