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

Function RecordBatch__columns

r/src/recordbatch.cpp:72–79  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

70
71// [[arrow::export]]
72cpp11::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]]
82std::shared_ptr<arrow::Array> RecordBatch__column(

Callers 1

Calls 3

to_r_listFunction · 0.85
num_columnsMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected