This is an automated email from the ASF dual-hosted git repository.

jayzhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new 959499bbb5 Expose accessors from ArrowReaderOptions (#7400)
959499bbb5 is described below

commit 959499bbb58e10e2eb8cf8f54eb9215d4e9d1fef
Author: Kyle Barron <[email protected]>
AuthorDate: Thu Apr 10 09:04:58 2025 -0400

    Expose accessors from ArrowReaderOptions (#7400)
---
 parquet/src/arrow/arrow_reader/mod.rs | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/parquet/src/arrow/arrow_reader/mod.rs 
b/parquet/src/arrow/arrow_reader/mod.rs
index 0db4a60ffa..8bbe175daf 100644
--- a/parquet/src/arrow/arrow_reader/mod.rs
+++ b/parquet/src/arrow/arrow_reader/mod.rs
@@ -397,6 +397,22 @@ impl ArrowReaderOptions {
             ..self
         }
     }
+
+    /// Retrieve the currently set page index behavior.
+    ///
+    /// This can be set via [`with_page_index`][Self::with_page_index].
+    pub fn page_index(&self) -> bool {
+        self.page_index
+    }
+
+    /// Retrieve the currently set file decryption properties.
+    ///
+    /// This can be set via
+    /// [`file_decryption_properties`][Self::with_file_decryption_properties].
+    #[cfg(feature = "encryption")]
+    pub fn file_decryption_properties(&self) -> 
Option<&FileDecryptionProperties> {
+        self.file_decryption_properties.as_ref()
+    }
 }
 
 /// The metadata necessary to construct a [`ArrowReaderBuilder`]

Reply via email to