| 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_) { |
nothing calls this directly
no test coverage detected