| 265 | namespace r { |
| 266 | |
| 267 | arrow::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 |
no test coverage detected