pub struct VectorBatch { /* private fields */ }Expand description
A batch of rows for vectorized processing
Instead of processing one row at a time, we accumulate rows into batches and process them together for better cache utilization and SIMD opportunities.
Implementations§
Source§impl VectorBatch
impl VectorBatch
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a new batch with specified capacity
Sourcepub fn add_column(&mut self, name: impl Into<String>, column: ColumnVector)
pub fn add_column(&mut self, name: impl Into<String>, column: ColumnVector)
Add a column to the batch
Sourcepub fn column(&self, name: &str) -> Option<&ColumnVector>
pub fn column(&self, name: &str) -> Option<&ColumnVector>
Get column by name
Sourcepub fn column_at(&self, idx: usize) -> Option<&ColumnVector>
pub fn column_at(&self, idx: usize) -> Option<&ColumnVector>
Get column by index
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Get column count
Sourcepub fn set_selection(&mut self, selection: Vec<usize>)
pub fn set_selection(&mut self, selection: Vec<usize>)
Set selection vector (for filtering)
Sourcepub fn clear_selection(&mut self)
pub fn clear_selection(&mut self)
Clear selection vector
Sourcepub fn memory_size(&self) -> usize
pub fn memory_size(&self) -> usize
Get total memory size
Trait Implementations§
Source§impl Debug for VectorBatch
impl Debug for VectorBatch
Auto Trait Implementations§
impl Freeze for VectorBatch
impl RefUnwindSafe for VectorBatch
impl Send for VectorBatch
impl Sync for VectorBatch
impl Unpin for VectorBatch
impl UnsafeUnpin for VectorBatch
impl UnwindSafe for VectorBatch
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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