@@ -26,33 +26,33 @@ use crate::{Error, ErrorKind, Result};
2626
2727/// Human-readable identification of the application writing the file, along with its version.
2828/// Example: "Trino version 381"
29- pub ( crate ) const CREATED_BY_PROPERTY : & str = "created-by" ;
29+ pub const CREATED_BY_PROPERTY : & str = "created-by" ;
3030
3131/// Metadata about a blob.
3232/// For more information, see: https://iceberg.apache.org/puffin-spec/#blobmetadata
3333#[ derive( Debug , PartialEq , Eq , Serialize , Deserialize , Clone ) ]
3434#[ serde( rename_all = "kebab-case" ) ]
35- pub ( crate ) struct BlobMetadata {
35+ pub struct BlobMetadata {
3636 /// See blob types: https://iceberg.apache.org/puffin-spec/#blob-types
37- pub ( crate ) r#type : String ,
37+ pub r#type : String ,
3838 /// List of field IDs the blob was computed for; the order of items is used to compute sketches stored in the blob.
39- pub ( crate ) fields : Vec < i32 > ,
39+ pub fields : Vec < i32 > ,
4040 /// ID of the Iceberg table's snapshot the blob was computed from
41- pub ( crate ) snapshot_id : i64 ,
41+ pub snapshot_id : i64 ,
4242 /// Sequence number of the Iceberg table's snapshot the blob was computed from
43- pub ( crate ) sequence_number : i64 ,
43+ pub sequence_number : i64 ,
4444 /// The offset in the file where the blob contents start
45- pub ( crate ) offset : u64 ,
45+ pub offset : u64 ,
4646 /// The length of the blob stored in the file (after compression, if compressed)
47- pub ( crate ) length : u64 ,
47+ pub length : u64 ,
4848 /// The compression codec used to compress the data
4949 #[ serde( skip_serializing_if = "CompressionCodec::is_none" ) ]
5050 #[ serde( default ) ]
51- pub ( crate ) compression_codec : CompressionCodec ,
51+ pub compression_codec : CompressionCodec ,
5252 /// Arbitrary meta-information about the blob
5353 #[ serde( skip_serializing_if = "HashMap::is_empty" ) ]
5454 #[ serde( default ) ]
55- pub ( crate ) properties : HashMap < String , String > ,
55+ pub properties : HashMap < String , String > ,
5656}
5757
5858#[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug ) ]
@@ -91,13 +91,13 @@ impl Flag {
9191/// Metadata about a puffin file.
9292/// For more information, see: https://iceberg.apache.org/puffin-spec/#filemetadata
9393#[ derive( Debug , PartialEq , Eq , Serialize , Deserialize , Clone ) ]
94- pub ( crate ) struct FileMetadata {
94+ pub struct FileMetadata {
9595 /// Metadata about blobs in file
96- pub ( crate ) blobs : Vec < BlobMetadata > ,
96+ pub blobs : Vec < BlobMetadata > ,
9797 /// Arbitrary meta-information, like writer identification/version.
9898 #[ serde( skip_serializing_if = "HashMap::is_empty" ) ]
9999 #[ serde( default ) ]
100- pub ( crate ) properties : HashMap < String , String > ,
100+ pub properties : HashMap < String , String > ,
101101}
102102
103103impl FileMetadata {
0 commit comments