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

Method Read

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

Source from the content-addressed store, hash-verified

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

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