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

Method AppendValue

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

Source from the content-addressed store, hash-verified

191 }
192
193 Status AppendValue(const rj::Value& json_obj) override {
194 if (json_obj.IsNull()) {
195 return AppendNull();
196 }
197 if (json_obj.IsBool()) {
198 return builder_->Append(json_obj.GetBool());
199 }
200 if (json_obj.IsInt()) {
201 return builder_->Append(json_obj.GetInt() != 0);
202 }
203 return JSONTypeError("boolean", json_obj.GetType());
204 }
205
206 std::shared_ptr<ArrayBuilder> builder() override { return builder_; }
207

Callers

nothing calls this directly

Calls 6

JSONTypeErrorFunction · 0.85
AppendNullFunction · 0.50
IsNullMethod · 0.45
AppendMethod · 0.45
GetBoolMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected