pub struct ArrowSheet {
pub name: Arc<str>,
pub columns: Vec<ArrowColumn>,
pub nrows: u32,
pub chunk_starts: Vec<usize>,
}Fields§
§name: Arc<str>§columns: Vec<ArrowColumn>§nrows: u32§chunk_starts: Vec<usize>Implementations§
Source§impl ArrowSheet
impl ArrowSheet
Sourcepub fn shape(&self) -> Vec<ColumnShape>
pub fn shape(&self) -> Vec<ColumnShape>
Return a summary of each column’s chunk counts, total rows, and lane presence.
pub fn range_view( &self, sr: usize, sc: usize, er: usize, ec: usize, ) -> ArrowRangeView<'_>
Sourcepub fn ensure_row_capacity(&mut self, target_rows: usize)
pub fn ensure_row_capacity(&mut self, target_rows: usize)
Ensure capacity to address at least target_rows rows by appending empty chunks.
Sourcepub fn chunk_of_row(&self, abs_row: usize) -> Option<(usize, usize)>
pub fn chunk_of_row(&self, abs_row: usize) -> Option<(usize, usize)>
Return (chunk_idx, in_chunk_offset) for absolute 0-based row.
Sourcepub fn maybe_compact_chunk(
&mut self,
col_idx: usize,
ch_idx: usize,
abs_threshold: usize,
frac_den: usize,
) -> bool
pub fn maybe_compact_chunk( &mut self, col_idx: usize, ch_idx: usize, abs_threshold: usize, frac_den: usize, ) -> bool
Heuristic compaction: rebuilds a chunk’s base arrays by applying its overlay when overlay density crosses thresholds. Returns true if a rebuild occurred.
Sourcepub fn insert_rows(&mut self, before: usize, count: usize)
pub fn insert_rows(&mut self, before: usize, count: usize)
Insert count rows before absolute 0-based row before.
Sourcepub fn delete_rows(&mut self, start: usize, count: usize)
pub fn delete_rows(&mut self, start: usize, count: usize)
Delete count rows starting from absolute 0-based row start.
Sourcepub fn insert_columns(&mut self, before: usize, count: usize)
pub fn insert_columns(&mut self, before: usize, count: usize)
Insert count columns before absolute 0-based column before with empty chunks.
Sourcepub fn delete_columns(&mut self, start: usize, count: usize)
pub fn delete_columns(&mut self, start: usize, count: usize)
Delete count columns starting at absolute 0-based column start.
Trait Implementations§
Source§impl Clone for ArrowSheet
impl Clone for ArrowSheet
Source§fn clone(&self) -> ArrowSheet
fn clone(&self) -> ArrowSheet
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 ArrowSheet
impl !RefUnwindSafe for ArrowSheet
impl Send for ArrowSheet
impl Sync for ArrowSheet
impl Unpin for ArrowSheet
impl !UnwindSafe for ArrowSheet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more