Skip to main content

ColumnNullableT

Struct ColumnNullableT 

Source
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>

Source

pub fn from_parts(nested: Arc<T>, nulls: ColumnRef) -> Result<Self>

Create a new typed nullable column from parts

Source

pub fn from_nested(nested: Arc<T>) -> Self

Create from nested column only (all non-null initially)

Source

pub fn new(type_: Type) -> Self

Create with type

Source

pub fn wrap(col: ColumnNullable) -> Self

Wrap a ColumnNullable (matches C++ Wrap)

Source

pub fn wrap_ref(col: ColumnRef) -> Result<Self>

Wrap from ColumnRef

Source

pub fn typed_nested(&self) -> Result<Arc<T>>

Get the typed nested column

Source

pub fn is_null(&self, index: usize) -> bool

Check if value at index is null

Source

pub fn inner(&self) -> &ColumnNullable

Get the inner ColumnNullable

Source

pub fn inner_mut(&mut self) -> &mut ColumnNullable

Get mutable inner ColumnNullable

Source

pub fn len(&self) -> usize

Get size

Source

pub fn is_empty(&self) -> bool

Check if empty

Trait Implementations§

Source§

impl<T: Column + 'static> Column for ColumnNullableT<T>

Source§

fn column_type(&self) -> &Type

Get the type of this column
Source§

fn size(&self) -> usize

Get the number of rows in this column
Source§

fn clear(&mut self)

Clear all data from the column
Source§

fn reserve(&mut self, new_cap: usize)

Reserve capacity for at least new_cap elements
Source§

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<()>

Load column data from byte buffer
Source§

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 save_to_buffer(&self, buffer: &mut BytesMut) -> Result<()>

Save column data to byte buffer
Source§

fn clone_empty(&self) -> ColumnRef

Create an empty clone of this column (same type, no data)
Source§

fn slice(&self, begin: usize, len: usize) -> Result<ColumnRef>

Create a slice of this column
Source§

fn as_any(&self) -> &dyn Any

Downcast to a concrete column type
Source§

fn as_any_mut(&mut self) -> &mut dyn Any

Downcast to a mutable concrete column type
Source§

fn load_prefix(&mut self, _buffer: &mut &[u8], _rows: usize) -> Result<()>

Load column prefix from byte buffer (for types that need prefix data) Default implementation is a no-op. Override for types like LowCardinality. This matches C++ clickhouse-cpp’s LoadPrefix pattern.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more