| 698 | } |
| 699 | |
| 700 | void ParquetFileWriter::AddKeyValueMetadata( |
| 701 | const std::shared_ptr<const KeyValueMetadata>& key_value_metadata) { |
| 702 | if (contents_) { |
| 703 | contents_->AddKeyValueMetadata(key_value_metadata); |
| 704 | } else { |
| 705 | throw ParquetException("Cannot add key-value metadata to closed file"); |
| 706 | } |
| 707 | } |
| 708 | |
| 709 | const std::shared_ptr<WriterProperties>& ParquetFileWriter::properties() const { |
| 710 | if (contents_) { |