pub struct SuperTableV {
pub slices: Vec<TableV>,
pub len: usize,
}Expand description
§SuperTableView
Borrowed view over [offset .. offset + len) rows from a SuperTable,
potentially spanning multiple table batches (TableV slices).
§Purpose
- Mini-batch representation of a single logical
TableorSuperTablebatch. - Allows preserving cached metadata (e.g. null counts) across multiple regions without merging or cloning data.
§Fields
slices: constituentTableVslices covering the window.len: logical row count of this view.
§Notes
Fields§
§slices: Vec<TableV>§len: usizeImplementations§
Source§impl SuperTableV
impl SuperTableV
pub fn is_empty(&self) -> bool
pub fn n_slices(&self) -> usize
Sourcepub fn cols(&self) -> Vec<Arc<Field>>
pub fn cols(&self) -> Vec<Arc<Field>>
Returns the columns of the Super Table
Holds an assumption that all inner tables have the same fields
Sourcepub fn slice(&self, offset: usize, len: usize) -> SuperTableV
pub fn slice(&self, offset: usize, len: usize) -> SuperTableV
Returns a sub-window of this chunked slice object as a new ChunkedTableSlice.
Sourcepub fn row(&self, row_idx: usize) -> TableV
pub fn row(&self, row_idx: usize) -> TableV
Random-access a single row (as a zero-copy TableSlice of length 1).
Sourcepub fn iter(&self) -> impl Iterator<Item = TableV>
pub fn iter(&self) -> impl Iterator<Item = TableV>
Iterate through all TableSlices in this slice.
Sourcepub fn row_slice(&self, row: usize) -> TableV
pub fn row_slice(&self, row: usize) -> TableV
Return a zero-copy TableSlice of exactly one row by global row index.
Trait Implementations§
Source§impl Clone for SuperTableV
impl Clone for SuperTableV
Source§fn clone(&self) -> SuperTableV
fn clone(&self) -> SuperTableV
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Concatenate for SuperTableV
impl Concatenate for SuperTableV
Source§fn concat(self, other: SuperTableV) -> Result<SuperTableV, MinarrowError>
fn concat(self, other: SuperTableV) -> Result<SuperTableV, MinarrowError>
Concatenates two super table views by materialising both to owned tables, concatenating them, and wrapping the result back in a view.
§Notes
- This operation copies data from both views to create owned tables.
- The resulting view contains a single slice wrapping the concatenated table.
Source§impl Consolidate for SuperTableV
impl Consolidate for SuperTableV
Source§impl Debug for SuperTableV
impl Debug for SuperTableV
Source§impl From<SuperTable> for SuperTableV
Available on crate feature chunked only.
impl From<SuperTable> for SuperTableV
Available on crate feature
chunked only.Source§fn from(super_table: SuperTable) -> SuperTableV
fn from(super_table: SuperTable) -> SuperTableV
Converts to this type from the input type.
Source§impl From<SuperTableV> for SuperTable
Available on crate feature views only.
impl From<SuperTableV> for SuperTable
Available on crate feature
views only.Source§fn from(super_table_v: SuperTableV) -> SuperTable
fn from(super_table_v: SuperTableV) -> SuperTable
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SuperTableV
impl RefUnwindSafe for SuperTableV
impl Send for SuperTableV
impl Sync for SuperTableV
impl Unpin for SuperTableV
impl UnsafeUnpin for SuperTableV
impl UnwindSafe for SuperTableV
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