| 354 | } |
| 355 | |
| 356 | void Close(bool has_dictionary, bool fallback) override { |
| 357 | if (meta_encryptor_ != nullptr) { |
| 358 | UpdateEncryption(encryption::kColumnMetaData); |
| 359 | } |
| 360 | |
| 361 | // Serialized page writer does not need to adjust page offsets. |
| 362 | FinishPageIndexes(/*final_position=*/0); |
| 363 | |
| 364 | // index_page_offset = -1 since they are not supported |
| 365 | metadata_->Finish(num_values_, dictionary_page_offset_, -1, data_page_offset_, |
| 366 | total_compressed_size_, total_uncompressed_size_, has_dictionary, |
| 367 | fallback, dict_encoding_stats_, data_encoding_stats_, |
| 368 | meta_encryptor_); |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Compress a buffer. |