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

Function ipc___RecordBatchFileReader__batches

r/src/recordbatchreader.cpp:284–294  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

282
283// [[arrow::export]]
284cpp11::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}

Calls 4

ValueOrStopFunction · 0.85
to_r_listFunction · 0.85
num_record_batchesMethod · 0.45
ReadRecordBatchMethod · 0.45

Tested by

no test coverage detected