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

Function StructArray__from_RecordBatch

r/src/array.cpp:222–226  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

220
221// [[arrow::export]]
222std::shared_ptr<arrow::StructArray> StructArray__from_RecordBatch(
223 const std::shared_ptr<arrow::RecordBatch>& batch) {
224 return ValueOrStop(
225 arrow::StructArray::Make(batch->columns(), batch->schema()->field_names()));
226}
227
228// [[arrow::export]]
229cpp11::list StructArray__Flatten(const std::shared_ptr<arrow::StructArray>& array) {

Callers 1

Calls 5

ValueOrStopFunction · 0.85
columnsMethod · 0.80
field_namesMethod · 0.80
MakeFunction · 0.50
schemaMethod · 0.45

Tested by

no test coverage detected