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

Method AppendValue

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

Source from the content-addressed store, hash-verified

529 Status Init() override { return this->MakeConcreteBuilder(&builder_); }
530
531 Status AppendValue(sj::value& json_obj) override {
532 ARROW_ASSIGN_OR_RAISE(bool is_null, internal::IsJsonNull(json_obj));
533 if (is_null) {
534 return this->AppendNull();
535 }
536
537 ARROW_ASSIGN_OR_RAISE(auto view, internal::GetJsonAs<std::string_view>(json_obj));
538 return builder_->Append(view);
539 }
540
541 std::shared_ptr<ArrayBuilder> builder() override { return builder_; }
542

Callers

nothing calls this directly

Calls 2

AppendNullMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected