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

Function CollectRecordBatchArrays

r/src/recordbatch.cpp:267–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265namespace r {
266
267arrow::Status CollectRecordBatchArrays(
268 SEXP lst, const std::shared_ptr<arrow::Schema>& schema, int num_fields, bool inferred,
269 std::vector<std::shared_ptr<arrow::Array>>& arrays) {
270 auto extract_one_array = [&arrays, &schema, inferred](int j, SEXP x, cpp11::r_string) {
271 arrays[j] = arrow::r::vec_to_arrow_Array(x, schema->field(j)->type(), inferred);
272 };
273 arrow::r::TraverseDots(lst, num_fields, extract_one_array);
274 return arrow::Status::OK();
275}
276
277} // namespace r
278} // namespace arrow

Callers 1

RecordBatch__from_arraysFunction · 0.85

Calls 5

vec_to_arrow_ArrayFunction · 0.85
TraverseDotsFunction · 0.85
OKFunction · 0.50
typeMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected