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

Method DoWrite

cpp/src/arrow/ipc/feather_test.cc:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 virtual WriteProperties GetProperties() = 0;
73
74 void DoWrite(const Table& table) {
75 Initialize();
76 ASSERT_OK(WriteTable(table, stream_.get(), GetProperties()));
77 ASSERT_OK_AND_ASSIGN(output_, stream_->Finish());
78 auto buffer = std::make_shared<io::BufferReader>(output_);
79 ASSERT_OK_AND_ASSIGN(reader_, Reader::Open(buffer));
80 }
81
82 void CheckSlice(std::shared_ptr<RecordBatch> batch, int start, int size) {
83 batch = batch->Slice(start, size);

Callers

nothing calls this directly

Calls 5

WriteTableFunction · 0.70
InitializeFunction · 0.50
ASSERT_OK_AND_ASSIGNFunction · 0.50
getMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected