etseidl commented on code in PR #9051:
URL: https://github.com/apache/arrow-rs/pull/9051#discussion_r2649238352
##########
parquet/src/file/metadata/reader.rs:
##########
@@ -152,6 +152,20 @@ impl ParquetMetaDataReader {
.with_offset_index_policy(policy)
}
+ /// Sets whether to read [`PageEncodingStats`] as a bitmask.
+ ///
+ /// See [`ParquetMetaDataOptions::with_encoding_stats_as_mask`] for more
details.
+ pub fn with_encoding_stats_as_mask(mut self, val: bool) -> Self {
+ let mut options = self
+ .metadata_options
+ .as_deref()
+ .cloned()
+ .unwrap_or_default();
+ options = options.with_encoding_stats_as_mask(val);
+ self.metadata_options = Some(Arc::new(options));
+ self
+ }
+
Review Comment:
```suggestion
```
I'd rather not add this setter since we already have `with_metadata_options`
below.
--
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]