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

Function GetJsonArray

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

Source from the content-addressed store, hash-verified

403}
404
405Result<simdjson::dom::array> GetJsonArray(simdjson::dom::element value,
406 std::string_view name) {
407 if (!value.is_array()) {
408 return Status::Invalid(name, " must be an array, got ", JsonTypeName(value.type()));
409 }
410 return ResolveSimdjsonResult(value.get_array(), "Failed to get JSON array");
411}
412
413Result<int64_t> GetJsonInt(simdjson::dom::element value, std::string_view name,
414 std::string_view expected) {

Callers 1

ARROW_ASSIGN_OR_RAISEFunction · 0.85

Calls 5

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

Tested by

no test coverage detected