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

Method EndRowGroup

cpp/src/parquet/stream_writer.cc:308–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void StreamWriter::EndRowGroup() {
309 if (!file_writer_) {
310 throw ParquetException("StreamWriter not initialized");
311 }
312 // Avoid creating empty row groups.
313 if (row_group_writer_->num_rows() > 0) {
314 row_group_writer_->Close();
315 row_group_writer_.reset(file_writer_->AppendBufferedRowGroup());
316 }
317}
318
319StreamWriter& operator<<(StreamWriter& os, EndRowType) {
320 os.EndRow();

Callers 2

stream_writer.ccFile · 0.80
CreateTestFileMethod · 0.80

Calls 5

ParquetExceptionFunction · 0.85
num_rowsMethod · 0.45
CloseMethod · 0.45
resetMethod · 0.45

Tested by 1

CreateTestFileMethod · 0.64