#[non_exhaustive]pub enum ColumnData {
Bool(Vec<Option<bool>>),
Int64(Vec<Option<i64>>),
UInt64(Vec<Option<u64>>),
Float64(Vec<Option<f64>>),
String(Vec<Option<String>>),
}Expand description
Type-safe column storage. Each variant holds nullable values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool(Vec<Option<bool>>)
Int64(Vec<Option<i64>>)
UInt64(Vec<Option<u64>>)
Float64(Vec<Option<f64>>)
String(Vec<Option<String>>)
Implementations§
Source§impl ColumnData
impl ColumnData
Sourcepub fn non_null_count(&self) -> usize
pub fn non_null_count(&self) -> usize
Count of non-null values.
Sourcepub fn take(&self, indices: &[usize]) -> Self
pub fn take(&self, indices: &[usize]) -> Self
Collect rows at specified indices into a new ColumnData.
§Panics
Panics if any index in indices is out of bounds. Callers must ensure all
indices are valid (e.g., from filter or sort which derive indices from
0..self.len()).
Sourcepub fn take_optional(&self, indices: &[Option<usize>]) -> Self
pub fn take_optional(&self, indices: &[Option<usize>]) -> Self
Collect rows at specified optional indices into a new ColumnData.
Some(i) takes the value at index i; None produces a null value.
Used by join operations where one side may have no matching row.
Trait Implementations§
Source§impl Clone for ColumnData
impl Clone for ColumnData
Source§fn clone(&self) -> ColumnData
fn clone(&self) -> ColumnData
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 ColumnData
impl RefUnwindSafe for ColumnData
impl Send for ColumnData
impl Sync for ColumnData
impl Unpin for ColumnData
impl UnsafeUnpin for ColumnData
impl UnwindSafe for ColumnData
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