etseidl commented on code in PR #6637:
URL: https://github.com/apache/arrow-rs/pull/6637#discussion_r1956641647
##########
parquet/src/file/metadata/reader.rs:
##########
@@ -68,6 +76,28 @@ pub struct ParquetMetaDataReader {
// Size of the serialized thrift metadata plus the 8 byte footer. Only set
if
// `self.parse_metadata` is called.
metadata_size: Option<usize>,
+ #[cfg(feature = "encryption")]
+ file_decryption_properties: Option<FileDecryptionProperties>,
+}
+
+/// Describes how the footer metadata is stored
+///
+/// This is parsed from the last 8 bytes of the Parquet file
+pub struct FooterTail {
+ metadata_length: usize,
+ encrypted_footer: bool,
+}
+
+impl FooterTail {
+ /// The length of the footer metadata in bytes
+ pub fn metadata_length(&self) -> usize {
+ self.metadata_length
+ }
+
+ /// Whether the footer metadata is encrypted
+ pub fn encrypted_footer(&self) -> bool {
Review Comment:
This name threw me a bit down below...I thought this returned the encrypted
footer. Maybe change to `is_encrypted_footer`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]