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

Method MakeFromIterator

cpp/src/arrow/record_batch.cc:851–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849}
850
851Result<std::shared_ptr<RecordBatchReader>> RecordBatchReader::MakeFromIterator(
852 Iterator<std::shared_ptr<RecordBatch>> batches, std::shared_ptr<Schema> schema,
853 DeviceAllocationType device_type) {
854 if (schema == nullptr) {
855 return Status::Invalid("Schema cannot be nullptr");
856 }
857
858 return std::make_shared<SimpleRecordBatchReader>(std::move(batches), std::move(schema),
859 device_type);
860}
861
862RecordBatchReader::~RecordBatchReader() {
863 ARROW_WARN_NOT_OK(this->Close(), "Implicitly called RecordBatchReader::Close failed");

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.70

Tested by

no test coverage detected