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

Method Read

cpp/src/arrow/ipc/feather.cc:731–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729 std::shared_ptr<Schema> schema() const override { return schema_; }
730
731 Status Read(const IpcReadOptions& options, std::shared_ptr<Table>* out) {
732 ARROW_ASSIGN_OR_RAISE(auto reader, RecordBatchFileReader::Open(source_, options));
733 RecordBatchVector batches(reader->num_record_batches());
734 for (int i = 0; i < reader->num_record_batches(); ++i) {
735 ARROW_ASSIGN_OR_RAISE(batches[i], reader->ReadRecordBatch(i));
736 }
737
738 return Table::FromRecordBatches(reader->schema(), batches).Value(out);
739 }
740
741 Status Read(std::shared_ptr<Table>* out) override { return Read(options_, out); }
742

Callers

nothing calls this directly

Calls 10

schemaMethod · 0.95
push_backMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
ReadFunction · 0.50
InvalidFunction · 0.50
num_record_batchesMethod · 0.45
ReadRecordBatchMethod · 0.45
ValueMethod · 0.45
schemaMethod · 0.45
GetFieldIndexMethod · 0.45

Tested by

no test coverage detected