File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ pub struct ManifestMetadata {
964
964
schema : SchemaRef ,
965
965
/// ID of the schema used to write the manifest as a string
966
966
schema_id : SchemaId ,
967
- /// The partition spec used to write the manifest
967
+ /// The partition spec used to write the manifest
968
968
partition_spec : PartitionSpec ,
969
969
/// Table format version number of the manifest as a string
970
970
format_version : FormatVersion ,
@@ -1062,6 +1062,31 @@ impl ManifestMetadata {
1062
1062
content,
1063
1063
} )
1064
1064
}
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
+ }
1065
1090
}
1066
1091
1067
1092
/// Reference to [`ManifestEntry`].
You can’t perform that action at this time.
0 commit comments