pub struct ColumnDateTime64 { /* private fields */ }Expand description
Column for DateTime64 type (stored as Int64 - subsecond precision) Supports arbitrary sub-second precision, extended date range
C++ Implementation Pattern:
C++ uses delegation to ColumnDecimal, but we use ColumnInt64 for
simplicity since DateTime64 is fundamentally stored as Int64.
Implementations§
Source§impl ColumnDateTime64
impl ColumnDateTime64
Sourcepub fn new(type_: Type) -> Self
pub fn new(type_: Type) -> Self
Creates a new empty DateTime64 column, extracting precision and timezone from the type.
Sourcepub fn with_data(self, data: Vec<i64>) -> Self
pub fn with_data(self, data: Vec<i64>) -> Self
Returns a new column populated with the given sub-second timestamp values.
Sourcepub fn append(&mut self, value: i64)
pub fn append(&mut self, value: i64)
Append timestamp with precision (e.g., for precision 3, value is milliseconds)
Sourcepub fn data(&self) -> &ColumnInt64
pub fn data(&self) -> &ColumnInt64
Get reference to underlying data column (for advanced use)
Trait Implementations§
Source§impl Column for ColumnDateTime64
impl Column for ColumnDateTime64
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 ColumnDateTime64
impl RefUnwindSafe for ColumnDateTime64
impl Send for ColumnDateTime64
impl Sync for ColumnDateTime64
impl Unpin for ColumnDateTime64
impl UnwindSafe for ColumnDateTime64
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