Skip to content

Commit ea9a1ae

Browse files
chore: Add manifest metadata accessor (#1399)
## What changes are included in this PR? An easy change, I need to access manifest metadata without `into_parts` and re-organize. ## Are these changes tested? An easy no-op change. Co-authored-by: Renjie Liu <[email protected]>
1 parent e8371de commit ea9a1ae

File tree

1 file changed

+5
-0
lines changed
  • crates/iceberg/src/spec/manifest

1 file changed

+5
-0
lines changed

crates/iceberg/src/spec/manifest/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ impl Manifest {
9999
&self.entries
100100
}
101101

102+
/// Get metadata.
103+
pub fn metadata(&self) -> &ManifestMetadata {
104+
&self.metadata
105+
}
106+
102107
/// Consume this Manifest, returning its constituent parts
103108
pub fn into_parts(self) -> (Vec<ManifestEntryRef>, ManifestMetadata) {
104109
let Self { entries, metadata } = self;

0 commit comments

Comments
 (0)