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

Method AppendValue

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

Source from the content-addressed store, hash-verified

163 }
164
165 Status AppendValue(sj::value& json_obj) override {
166 ARROW_ASSIGN_OR_RAISE(bool is_null, internal::IsJsonNull(json_obj));
167 if (is_null) {
168 return AppendNull();
169 }
170 int64_t int_value;
171 if (json_obj.get(int_value) == simdjson::SUCCESS) {
172 return builder_->Append(int_value != 0);
173 }
174 ARROW_ASSIGN_OR_RAISE(bool bool_value, internal::GetJsonAs<bool>(json_obj));
175 return builder_->Append(bool_value);
176 }
177
178 std::shared_ptr<ArrayBuilder> builder() override { return builder_; }
179

Callers

nothing calls this directly

Calls 3

AppendNullFunction · 0.50
getMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected