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

Function ChunkedArrayFromJSONString

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

Source from the content-addressed store, hash-verified

1005}
1006
1007Result<std::shared_ptr<ChunkedArray>> ChunkedArrayFromJSONString(
1008 const std::shared_ptr<DataType>& type, const std::vector<std::string>& json_strings) {
1009 ArrayVector out_chunks;
1010 out_chunks.reserve(json_strings.size());
1011 for (const std::string& chunk_json : json_strings) {
1012 out_chunks.emplace_back();
1013 ARROW_ASSIGN_OR_RAISE(out_chunks.back(), ArrayFromJSONString(type, chunk_json));
1014 }
1015 return std::make_shared<ChunkedArray>(std::move(out_chunks), type);
1016}
1017
1018Result<std::shared_ptr<Array>> DictArrayFromJSONString(
1019 const std::shared_ptr<DataType>& type, std::string_view indices_json,

Callers 2

TestSessionFunction · 0.85
RunExampleFunction · 0.85

Calls 6

ArrayFromJSONStringFunction · 0.85
emplace_backMethod · 0.80
backMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45

Tested by 1

TestSessionFunction · 0.68