File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ pub struct ManifestMetadata {
964964 schema : SchemaRef ,
965965 /// ID of the schema used to write the manifest as a string
966966 schema_id : SchemaId ,
967- /// The partition spec used to write the manifest
967+ /// The partition spec used to write the manifest
968968 partition_spec : PartitionSpec ,
969969 /// Table format version number of the manifest as a string
970970 format_version : FormatVersion ,
@@ -1062,6 +1062,31 @@ impl ManifestMetadata {
10621062 content,
10631063 } )
10641064 }
1065+
1066+ /// Get the schema of table at the time manifest was written
1067+ pub fn schema ( & self ) -> & SchemaRef {
1068+ & self . schema
1069+ }
1070+
1071+ /// Get the ID of schema used to write the manifest
1072+ pub fn schema_id ( & self ) -> SchemaId {
1073+ self . schema_id
1074+ }
1075+
1076+ /// Get the partition spec used to write manifest
1077+ pub fn partition_spec ( & self ) -> & PartitionSpec {
1078+ & self . partition_spec
1079+ }
1080+
1081+ /// Get the table format version
1082+ pub fn format_version ( & self ) -> & FormatVersion {
1083+ & self . format_version
1084+ }
1085+
1086+ /// Get the type of content files tracked by manifest
1087+ pub fn content ( & self ) -> & ManifestContentType {
1088+ & self . content
1089+ }
10651090}
10661091
10671092/// Reference to [`ManifestEntry`].
You can’t perform that action at this time.
0 commit comments