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

Function RecordBatch__names

r/src/recordbatch.cpp:138–146  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

136
137// [[arrow::export]]
138cpp11::writable::strings RecordBatch__names(
139 const std::shared_ptr<arrow::RecordBatch>& batch) {
140 int n = batch->num_columns();
141 cpp11::writable::strings names(n);
142 for (int i = 0; i < n; i++) {
143 names[i] = batch->column_name(i);
144 }
145 return names;
146}
147
148// [[arrow::export]]
149std::shared_ptr<arrow::RecordBatch> RecordBatch__Slice1(

Callers 1

Calls 1

num_columnsMethod · 0.45

Tested by

no test coverage detected