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

Method NextColumn

cpp/src/parquet/file_writer.cc:132–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 ColumnWriter* NextColumn() override {
133 if (buffered_row_group_) {
134 throw ParquetException(
135 "NextColumn() is not supported when a RowGroup is written by size");
136 }
137
138 if (column_writers_[0]) {
139 CheckRowsWritten();
140 }
141
142 // Throws an error if more columns are being written
143 auto col_meta = metadata_->NextColumnChunk();
144
145 if (column_writers_[0]) {
146 total_bytes_written_ += column_writers_[0]->Close();
147 total_compressed_bytes_written_ +=
148 column_writers_[0]->total_compressed_bytes_written();
149 }
150
151 const int32_t column_ordinal = next_column_index_++;
152 column_writers_[0] = CreateColumnWriterForColumn(col_meta, column_ordinal);
153 return column_writers_[0].get();
154 }
155
156 ColumnWriter* column(int i) override {
157 if (!buffered_row_group_) {

Callers

nothing calls this directly

Calls 5

ParquetExceptionFunction · 0.85
NextColumnChunkMethod · 0.45
CloseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected