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

Method AppendValue

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

Source from the content-addressed store, hash-verified

317 Status Init() override { return this->MakeConcreteBuilder(&builder_); }
318
319 Status AppendValue(sj::value& json_obj) override {
320 ARROW_ASSIGN_OR_RAISE(bool is_null, internal::IsJsonNull(json_obj));
321 if (is_null) {
322 return this->AppendNull();
323 }
324 c_type value;
325 RETURN_NOT_OK(ConvertNumber<Type>(json_obj, *this->type_, &value));
326 return builder_->Append(value);
327 }
328
329 std::shared_ptr<ArrayBuilder> builder() override { return builder_; }
330

Callers

nothing calls this directly

Calls 2

AppendNullMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected