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

Function ResolveSimdjsonResult

cpp/src/arrow/util/simdjson_internal.h:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156template <typename T>
157Result<T> ResolveSimdjsonResult(simdjson::simdjson_result<T> result,
158 std::string_view error) {
159 T value;
160 if (auto error_code = std::move(result).get(value); error_code != simdjson::SUCCESS) {
161 return Status::Invalid(error, ": ", simdjson::error_message(error_code));
162 }
163 return value;
164}
165
166ARROW_EXPORT const char* JsonTypeName(simdjson::dom::element_type type);
167

Callers 9

ParseAndReadSchemaMethod · 0.85
GetMemberIntFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.85
TensorFromJSONFunction · 0.85
GetJsonArrayFunction · 0.85
GetJsonIntFunction · 0.85
ParseJsonObjectFunction · 0.85
GetJsonIntArrayFunction · 0.85

Calls 2

InvalidFunction · 0.50
getMethod · 0.45

Tested by 1

TensorFromJSONFunction · 0.68