pub struct ColumnMap { /* private fields */ }Expand description
Column for Map(K, V) type, stored internally as Array(Tuple(K, V)).
Implementations§
Source§impl ColumnMap
impl ColumnMap
Sourcepub fn from_array(type_: Type, data: ColumnRef) -> Self
pub fn from_array(type_: Type, data: ColumnRef) -> Self
Create from existing array data
Sourcepub fn as_array(&self) -> Option<&ColumnArray>
pub fn as_array(&self) -> Option<&ColumnArray>
Get the underlying array column as ColumnArray if possible
Trait Implementations§
Source§impl Column for ColumnMap
impl Column for ColumnMap
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_prefix(&mut self, buffer: &mut &[u8], rows: usize) -> Result<()>
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.
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 Freeze for ColumnMap
impl !RefUnwindSafe for ColumnMap
impl Send for ColumnMap
impl Sync for ColumnMap
impl Unpin for ColumnMap
impl !UnwindSafe for ColumnMap
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