[[arrow::export]]
| 70 | |
| 71 | // [[arrow::export]] |
| 72 | cpp11::list RecordBatch__columns(const std::shared_ptr<arrow::RecordBatch>& batch) { |
| 73 | auto nc = batch->num_columns(); |
| 74 | arrow::ArrayVector res(nc); |
| 75 | for (int i = 0; i < nc; i++) { |
| 76 | res[i] = batch->column(i); |
| 77 | } |
| 78 | return arrow::r::to_r_list(res); |
| 79 | } |
| 80 | |
| 81 | // [[arrow::export]] |
| 82 | std::shared_ptr<arrow::Array> RecordBatch__column( |
no test coverage detected