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

Method ChunkedFromJSON

cpp/src/arrow/json/reader_test.cc:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 std::shared_ptr<ChunkedArray> ChunkedFromJSON(const std::shared_ptr<Field>& field,
68 const std::vector<std::string>& data) {
69 ArrayVector chunks(data.size());
70 for (size_t i = 0; i < chunks.size(); ++i) {
71 chunks[i] = ArrayFromJSON(field->type(), data[i]);
72 }
73 return std::make_shared<ChunkedArray>(std::move(chunks));
74 }
75
76 ParseOptions parse_options_ = ParseOptions::Defaults();
77 ReadOptions read_options_ = ReadOptions::Defaults();

Callers

nothing calls this directly

Calls 3

ArrayFromJSONFunction · 0.85
sizeMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected