pub struct ParxBundleReader { /* private fields */ }Expand description
Reader for PARX bundle files.
Provides access to all cached footers in the bundle.
Implementations§
Source§impl ParxBundleReader
impl ParxBundleReader
Sourcepub const fn header(&self) -> &BundleHeader
pub const fn header(&self) -> &BundleHeader
Get the bundle header.
Sourcepub fn entry_count(&self) -> usize
pub fn entry_count(&self) -> usize
Get the number of entries in the bundle.
Sourcepub const fn created_at_ms(&self) -> u64
pub const fn created_at_ms(&self) -> u64
Get the creation timestamp in milliseconds.
Sourcepub fn contains(&self, parquet_path: &str) -> bool
pub fn contains(&self, parquet_path: &str) -> bool
Check if a parquet path exists in the bundle.
Sourcepub fn parquet_paths(&self) -> Vec<&str>
pub fn parquet_paths(&self) -> Vec<&str>
Get the list of parquet paths in this bundle.
Get footer bytes for a specific parquet file.
Sourcepub fn get_source_size(&self, parquet_path: &str) -> Option<u64>
pub fn get_source_size(&self, parquet_path: &str) -> Option<u64>
Get source size for a specific parquet file.
Sourcepub fn validate_source_size(&self, parquet_path: &str, actual_size: u64) -> bool
pub fn validate_source_size(&self, parquet_path: &str, actual_size: u64) -> bool
Validate that a parquet file matches the expected size.
Sourcepub fn get_entry(&self, parquet_path: &str) -> Option<BundleEntryRef<'_>>
pub fn get_entry(&self, parquet_path: &str) -> Option<BundleEntryRef<'_>>
Get a full entry reference for a parquet file.
Sourcepub fn iter_entries(&self) -> impl Iterator<Item = BundleEntryRef<'_>>
pub fn iter_entries(&self) -> impl Iterator<Item = BundleEntryRef<'_>>
Iterate over all entries in the bundle.
Sourcepub fn validate_all(&self) -> Result<()>
pub fn validate_all(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ParxBundleReader
impl Clone for ParxBundleReader
Source§fn clone(&self) -> ParxBundleReader
fn clone(&self) -> ParxBundleReader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ParxBundleReader
impl RefUnwindSafe for ParxBundleReader
impl Send for ParxBundleReader
impl Sync for ParxBundleReader
impl Unpin for ParxBundleReader
impl UnsafeUnpin for ParxBundleReader
impl UnwindSafe for ParxBundleReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more