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

Method AppendValue

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

Source from the content-addressed store, hash-verified

511 Status Init() override { return this->MakeConcreteBuilder(&builder_); }
512
513 Status AppendValue(const rj::Value& json_obj) override {
514 if (json_obj.IsNull()) {
515 return this->AppendNull();
516 }
517 if (json_obj.IsString()) {
518 auto view = std::string_view(json_obj.GetString(), json_obj.GetStringLength());
519 return builder_->Append(view);
520 } else {
521 return JSONTypeError("string", json_obj.GetType());
522 }
523 }
524
525 std::shared_ptr<ArrayBuilder> builder() override { return builder_; }
526

Callers

nothing calls this directly

Calls 6

JSONTypeErrorFunction · 0.85
IsNullMethod · 0.45
AppendNullMethod · 0.45
GetStringMethod · 0.45
AppendMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected