Skip to content

Commit 959499b

Browse files
authored
Expose accessors from ArrowReaderOptions (#7400)
1 parent 9322547 commit 959499b

File tree

1 file changed

+16
-0
lines changed
  • parquet/src/arrow/arrow_reader

1 file changed

+16
-0
lines changed

parquet/src/arrow/arrow_reader/mod.rs

+16
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,22 @@ impl ArrowReaderOptions {
397397
..self
398398
}
399399
}
400+
401+
/// Retrieve the currently set page index behavior.
402+
///
403+
/// This can be set via [`with_page_index`][Self::with_page_index].
404+
pub fn page_index(&self) -> bool {
405+
self.page_index
406+
}
407+
408+
/// Retrieve the currently set file decryption properties.
409+
///
410+
/// This can be set via
411+
/// [`file_decryption_properties`][Self::with_file_decryption_properties].
412+
#[cfg(feature = "encryption")]
413+
pub fn file_decryption_properties(&self) -> Option<&FileDecryptionProperties> {
414+
self.file_decryption_properties.as_ref()
415+
}
400416
}
401417

402418
/// The metadata necessary to construct a [`ArrowReaderBuilder`]

0 commit comments

Comments
 (0)