pub struct ColumnDate32 { /* private fields */ }Expand description
Column for Date32 type (stored as Int32 - days since Unix epoch 1970-01-01) Extended range: 1900-01-01 to 2299-12-31
C++ Implementation Pattern:
Uses delegation to ColumnInt32 for storage, matching the C++
clickhouse-cpp reference implementation’s std::shared_ptr<ColumnInt32> data_ pattern.
Implementations§
Source§impl ColumnDate32
impl ColumnDate32
Sourcepub fn with_data(self, data: Vec<i32>) -> Self
pub fn with_data(self, data: Vec<i32>) -> Self
Returns a new column populated with the given days-since-epoch values.
Sourcepub fn append_timestamp(&mut self, timestamp: i64)
pub fn append_timestamp(&mut self, timestamp: i64)
Append from Unix timestamp (seconds since epoch)
Sourcepub fn timestamp_at(&self, index: usize) -> i64
pub fn timestamp_at(&self, index: usize) -> i64
Get Unix timestamp (seconds) at index
Sourcepub fn data(&self) -> &ColumnInt32
pub fn data(&self) -> &ColumnInt32
Get reference to underlying data column (for advanced use)
Trait Implementations§
Source§impl Column for ColumnDate32
impl Column for ColumnDate32
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 ColumnDate32
impl RefUnwindSafe for ColumnDate32
impl Send for ColumnDate32
impl Sync for ColumnDate32
impl Unpin for ColumnDate32
impl UnwindSafe for ColumnDate32
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