[[arrow::export]]
| 282 | |
| 283 | // [[arrow::export]] |
| 284 | cpp11::list ipc___RecordBatchFileReader__batches( |
| 285 | const std::shared_ptr<arrow::ipc::RecordBatchFileReader>& reader) { |
| 286 | auto n = reader->num_record_batches(); |
| 287 | std::vector<std::shared_ptr<arrow::RecordBatch>> res(n); |
| 288 | |
| 289 | for (int i = 0; i < n; i++) { |
| 290 | res[i] = ValueOrStop(reader->ReadRecordBatch(i)); |
| 291 | } |
| 292 | |
| 293 | return arrow::r::to_r_list(res); |
| 294 | } |
no test coverage detected