Skip to main content

PaxStreamReader

Struct PaxStreamReader 

Source
pub struct PaxStreamReader<'a> { /* private fields */ }
Expand description

Incremental reader for unsealed or sealed PAX streams.

Implementations§

Source§

impl<'a> PaxStreamReader<'a>

Source

pub fn open(data: &'a [u8]) -> Result<Self>

Source

pub fn is_sealed(&self) -> bool

Source

pub fn data_start(&self) -> usize

Source

pub fn keys(&self) -> &[String]

Source

pub fn key_sigils(&self) -> &[u8]

Source

pub fn complete_record_count(&self) -> usize

Number of records in all complete pages (excludes any in-progress page).

Source

pub fn has_complete_page(&self) -> bool

True when at least one full page is available.

Source

pub fn poll_next_page(&mut self) -> Option<PaxPageView<'a>>

Next complete page view, advancing the internal cursor.

Source

pub fn rewind_pages(&mut self)

Reset page iteration to the data-sector start.

Source

pub fn col_sum_f64_complete_pages(&self, key: &str) -> Option<f64>

Sum key as f64 over all complete pages (incremental column scan).

Source

pub fn get_f64_complete(&self, global_index: usize, key: &str) -> Option<f64>

Global record index → f64 within complete pages only.

Auto Trait Implementations§

§

impl<'a> Freeze for PaxStreamReader<'a>

§

impl<'a> RefUnwindSafe for PaxStreamReader<'a>

§

impl<'a> Send for PaxStreamReader<'a>

§

impl<'a> Sync for PaxStreamReader<'a>

§

impl<'a> Unpin for PaxStreamReader<'a>

§

impl<'a> UnsafeUnpin for PaxStreamReader<'a>

§

impl<'a> UnwindSafe for PaxStreamReader<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.