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

Method AddKeyValueMetadata

cpp/src/parquet/column_writer.cc:1627–1637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1625 }
1626
1627 void AddKeyValueMetadata(
1628 const std::shared_ptr<const KeyValueMetadata>& key_value_metadata) override {
1629 if (closed_) {
1630 throw ParquetException("Cannot add key-value metadata to closed column");
1631 }
1632 if (key_value_metadata_ == nullptr) {
1633 key_value_metadata_ = key_value_metadata;
1634 } else if (key_value_metadata != nullptr) {
1635 key_value_metadata_ = key_value_metadata_->Merge(*key_value_metadata);
1636 }
1637 }
1638
1639 void ResetKeyValueMetadata() override {
1640 if (closed_) {

Callers

nothing calls this directly

Calls 2

ParquetExceptionFunction · 0.85
MergeMethod · 0.45

Tested by

no test coverage detected