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

Function dataset___Scanner__ScanBatches

r/src/dataset.cpp:506–514  ·  view source on GitHub ↗

[[dataset::export]]

Source from the content-addressed store, hash-verified

504
505// [[dataset::export]]
506cpp11::list dataset___Scanner__ScanBatches(const std::shared_ptr<ds::Scanner>& scanner) {
507 auto it = ValueOrStop(scanner->ScanBatches());
508 arrow::RecordBatchVector batches;
509 StopIfNotOk(it.Visit([&](ds::TaggedRecordBatch tagged_batch) {
510 batches.push_back(std::move(tagged_batch.record_batch));
511 return arrow::Status::OK();
512 }));
513 return arrow::r::to_r_list(batches);
514}
515
516// [[dataset::export]]
517std::shared_ptr<arrow::RecordBatchReader> dataset___Scanner__ToRecordBatchReader(

Callers 1

Calls 7

ValueOrStopFunction · 0.85
StopIfNotOkFunction · 0.85
to_r_listFunction · 0.85
ScanBatchesMethod · 0.80
push_backMethod · 0.80
OKFunction · 0.50
VisitMethod · 0.45

Tested by

no test coverage detected