pub struct ColumnNullableT<T: Column> { /* private fields */ }Expand description
Typed nullable column wrapper (matches C++ ColumnNullableT)
Provides typed access to nullable columns with methods that work
with Option<T> instead of raw column operations.
Implementations§
Source§impl<T: Column + 'static> ColumnNullableT<T>
impl<T: Column + 'static> ColumnNullableT<T>
Sourcepub fn from_parts(nested: Arc<T>, nulls: ColumnRef) -> Result<Self>
pub fn from_parts(nested: Arc<T>, nulls: ColumnRef) -> Result<Self>
Create a new typed nullable column from parts
Sourcepub fn from_nested(nested: Arc<T>) -> Self
pub fn from_nested(nested: Arc<T>) -> Self
Create from nested column only (all non-null initially)
Sourcepub fn wrap(col: ColumnNullable) -> Self
pub fn wrap(col: ColumnNullable) -> Self
Wrap a ColumnNullable (matches C++ Wrap)
Sourcepub fn typed_nested(&self) -> Result<Arc<T>>
pub fn typed_nested(&self) -> Result<Arc<T>>
Get the typed nested column
Sourcepub fn inner(&self) -> &ColumnNullable
pub fn inner(&self) -> &ColumnNullable
Get the inner ColumnNullable
Sourcepub fn inner_mut(&mut self) -> &mut ColumnNullable
pub fn inner_mut(&mut self) -> &mut ColumnNullable
Get mutable inner ColumnNullable
Trait Implementations§
Source§impl<T: Column + 'static> Column for ColumnNullableT<T>
impl<T: Column + 'static> Column for ColumnNullableT<T>
Source§fn column_type(&self) -> &Type
fn column_type(&self) -> &Type
Get the type of this column
Source§fn append_column(&mut self, other: ColumnRef) -> Result<()>
fn append_column(&mut self, other: ColumnRef) -> Result<()>
Append another column’s data to this column
Source§fn load_from_buffer(&mut self, buffer: &mut &[u8], rows: usize) -> Result<()>
fn load_from_buffer(&mut self, buffer: &mut &[u8], rows: usize) -> Result<()>
Load column data from byte buffer
Source§fn save_prefix(&self, buffer: &mut BytesMut) -> Result<()>
fn save_prefix(&self, buffer: &mut BytesMut) -> Result<()>
Save column prefix to byte buffer (for types that need prefix data)
Default implementation is a no-op. Override for types like
LowCardinality, Array with special nested types. This matches C++
clickhouse-cpp’s SavePrefix pattern.
Source§fn clone_empty(&self) -> ColumnRef
fn clone_empty(&self) -> ColumnRef
Create an empty clone of this column (same type, no data)
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a mutable concrete column type
Auto Trait Implementations§
impl<T> Freeze for ColumnNullableT<T>
impl<T> !RefUnwindSafe for ColumnNullableT<T>
impl<T> Send for ColumnNullableT<T>
impl<T> Sync for ColumnNullableT<T>
impl<T> Unpin for ColumnNullableT<T>where
T: Unpin,
impl<T> !UnwindSafe for ColumnNullableT<T>
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