Skip to main content

PageStoreArgs

Struct PageStoreArgs 

Source
pub struct PageStoreArgs<'a> {
    column_index: usize,
    column_descriptor: &'a ColumnDescriptor,
}
Expand description

Context for a single PageStoreFactory::create call.

Describes the leaf column chunk the store will buffer. It is held by reference for the duration of the call; a backend reads only what it needs. More fields may be added in future releases without breaking existing implementations — the type is constructed only by the writer, so an implementer only ever receives one and calls its accessors.

Fields§

§column_index: usize§column_descriptor: &'a ColumnDescriptor

Implementations§

Source§

impl<'a> PageStoreArgs<'a>

Source

pub(crate) fn new( column_index: usize, column_descriptor: &'a ColumnDescriptor, ) -> Self

Source

pub fn column_index(&self) -> usize

Index of the leaf column within the row group.

A backend may use this to e.g. name spill files or shard across a bounded pool; it carries no ordering or coordination requirement.

Source

pub fn column_descriptor(&self) -> &ColumnDescriptor

Descriptor for the leaf column: physical/logical type, path, and max definition/repetition levels.

Lets a backend tailor buffering to the column — for example spilling only large BYTE_ARRAY columns while keeping small fixed-width ones on the heap.

Auto Trait Implementations§

§

impl<'a> Freeze for PageStoreArgs<'a>

§

impl<'a> RefUnwindSafe for PageStoreArgs<'a>

§

impl<'a> Send for PageStoreArgs<'a>

§

impl<'a> Sync for PageStoreArgs<'a>

§

impl<'a> Unpin for PageStoreArgs<'a>

§

impl<'a> UnsafeUnpin for PageStoreArgs<'a>

§

impl<'a> UnwindSafe for PageStoreArgs<'a>

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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.
§

impl<T> Ungil for T
where T: Send,

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V