pub struct ColumnBatch {
pub values: Vec<SochValue>,
pub name: String,
}Expand description
Columnar batch for vectorized processing
Fields§
§values: Vec<SochValue>Column values
name: StringColumn name
Implementations§
Source§impl ColumnBatch
impl ColumnBatch
Sourcepub fn new(name: String, values: Vec<CoreSochValue>) -> Self
pub fn new(name: String, values: Vec<CoreSochValue>) -> Self
Create from column data
Sourcepub fn get(&self, idx: usize) -> Option<&CoreSochValue>
pub fn get(&self, idx: usize) -> Option<&CoreSochValue>
Get value at index
Sourcepub fn as_i64_slice(&self) -> Option<Vec<i64>>
pub fn as_i64_slice(&self) -> Option<Vec<i64>>
Get raw integer data pointer (for SIMD)
Trait Implementations§
Source§impl Clone for ColumnBatch
impl Clone for ColumnBatch
Source§fn clone(&self) -> ColumnBatch
fn clone(&self) -> ColumnBatch
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 ColumnBatch
impl RefUnwindSafe for ColumnBatch
impl Send for ColumnBatch
impl Sync for ColumnBatch
impl Unpin for ColumnBatch
impl UnsafeUnpin for ColumnBatch
impl UnwindSafe for ColumnBatch
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> 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