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

Method SizeOfJSONArray

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

Source from the content-addressed store, hash-verified

125class ConcreteConverter : public JSONConverter {
126 public:
127 Result<int64_t> SizeOfJSONArray(const rj::Value& json_obj) {
128 if (!json_obj.IsArray()) {
129 return JSONTypeError("array", json_obj.GetType());
130 }
131 return json_obj.Size();
132 }
133
134 Status AppendValues(const rj::Value& json_array) final {
135 auto self = static_cast<Derived*>(this);

Callers

nothing calls this directly

Calls 3

JSONTypeErrorFunction · 0.85
GetTypeMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected