| 558 | Status Init() override { return this->MakeConcreteBuilder(&builder_); } |
| 559 | |
| 560 | Status AppendValue(sj::value& json_obj) override { |
| 561 | ARROW_ASSIGN_OR_RAISE(bool is_null, internal::IsJsonNull(json_obj)); |
| 562 | if (is_null) { |
| 563 | return this->AppendNull(); |
| 564 | } |
| 565 | ARROW_ASSIGN_OR_RAISE(auto view, internal::GetJsonAs<std::string_view>(json_obj)); |
| 566 | if (view.length() != static_cast<size_t>(builder_->byte_width())) { |
| 567 | std::stringstream ss; |
| 568 | ss << "Invalid string length " << view.length() << " in JSON input for " |
| 569 | << this->type_->ToString(); |
| 570 | return Status::Invalid(ss.str()); |
| 571 | } |
| 572 | return builder_->Append(view); |
| 573 | } |
| 574 | |
| 575 | std::shared_ptr<ArrayBuilder> builder() override { return builder_; } |
| 576 |
nothing calls this directly
no test coverage detected