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

Function GetJsonInt

cpp/src/arrow/util/simdjson_internal.cc:413–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413Result<int64_t> GetJsonInt(simdjson::dom::element value, std::string_view name,
414 std::string_view expected) {
415 if (!value.is_int64()) {
416 return Status::Invalid(name, " must contain ", expected, ", got ",
417 JsonTypeName(value.type()));
418 }
419 return ResolveSimdjsonResult(value.get_int64(), "Failed to get JSON integer");
420}
421
422Result<simdjson::dom::object> ParseJsonObject(simdjson::dom::parser& parser,
423 const std::string& json) {

Callers 1

ARROW_ASSIGN_OR_RAISEFunction · 0.85

Calls 4

ResolveSimdjsonResultFunction · 0.85
JsonTypeNameFunction · 0.70
InvalidFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected