pub struct ColumnDateTime { /* private fields */ }Expand description
Column for DateTime type (stored as UInt32 - seconds since Unix epoch) Range: 1970-01-01 00:00:00 to 2106-02-07 06:28:15
C++ Implementation Pattern:
Uses delegation to ColumnUInt32 for storage, matching the C++
clickhouse-cpp reference implementation’s std::shared_ptr<ColumnUInt32> data_ pattern.
Implementations§
Source§impl ColumnDateTime
impl ColumnDateTime
Sourcepub fn new(type_: Type) -> Self
pub fn new(type_: Type) -> Self
Creates a new empty DateTime column, extracting timezone from the type.
Sourcepub fn with_data(self, data: Vec<u32>) -> Self
pub fn with_data(self, data: Vec<u32>) -> Self
Returns a new column populated with the given Unix timestamp values.
Sourcepub fn data(&self) -> &ColumnUInt32
pub fn data(&self) -> &ColumnUInt32
Get reference to underlying data column (for advanced use)
Trait Implementations§
Source§impl Column for ColumnDateTime
impl Column for ColumnDateTime
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 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 ColumnDateTime
impl RefUnwindSafe for ColumnDateTime
impl Send for ColumnDateTime
impl Sync for ColumnDateTime
impl Unpin for ColumnDateTime
impl UnwindSafe for ColumnDateTime
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