| 716 | } |
| 717 | |
| 718 | void ParquetFileWriter::AddKeyValueMetadata( |
| 719 | const std::shared_ptr<const KeyValueMetadata>& key_value_metadata) { |
| 720 | if (contents_) { |
| 721 | contents_->AddKeyValueMetadata(key_value_metadata); |
| 722 | } else { |
| 723 | throw ParquetException("Cannot add key-value metadata to closed file"); |
| 724 | } |
| 725 | } |
| 726 | |
| 727 | const std::shared_ptr<WriterProperties>& ParquetFileWriter::properties() const { |
| 728 | if (contents_) { |