| 102 | class ConcreteConverter : public JSONConverter { |
| 103 | public: |
| 104 | Result<int32_t> AppendValues(sj::array& json_array) final { |
| 105 | auto self = static_cast<Derived*>(this); |
| 106 | int32_t num_elements = 0; |
| 107 | for (auto element : json_array) { |
| 108 | ARROW_ASSIGN_OR_RAISE(auto value, |
| 109 | internal::ResolveSimdjsonResult<sj::value>( |
| 110 | element, "Could not iterate elements of JSON array: ")); |
| 111 | RETURN_NOT_OK(self->AppendValue(value)); |
| 112 | num_elements++; |
| 113 | } |
| 114 | return num_elements; |
| 115 | } |
| 116 | |
| 117 | const std::shared_ptr<DataType>& value_type() { |
| 118 | if (type_->id() != Type::DICTIONARY) { |