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 ColumnDescriptorImplementations§
Source§impl<'a> PageStoreArgs<'a>
impl<'a> PageStoreArgs<'a>
pub(crate) fn new( column_index: usize, column_descriptor: &'a ColumnDescriptor, ) -> Self
Sourcepub fn column_index(&self) -> usize
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.
Sourcepub fn column_descriptor(&self) -> &ColumnDescriptor
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.