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

Method DoWrite

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

Source from the content-addressed store, hash-verified

68 virtual WriteProperties GetProperties() = 0;
69
70 void DoWrite(const Table& table) {
71 Initialize();
72 ASSERT_OK(WriteTable(table, stream_.get(), GetProperties()));
73 ASSERT_OK_AND_ASSIGN(output_, stream_->Finish());
74 auto buffer = std::make_shared<io::BufferReader>(output_);
75 ASSERT_OK_AND_ASSIGN(reader_, Reader::Open(buffer));
76 }
77
78 void CheckSlice(std::shared_ptr<RecordBatch> batch, int start, int size) {
79 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