pub struct Int96 { /* private fields */ }Expand description
Rust representation for logical type INT96, value is backed by an array of u32.
The type only takes 12 bytes, without extra padding.
Implementations§
Source§impl Int96
impl Int96
Sourcepub fn to_seconds(&self) -> i64
pub fn to_seconds(&self) -> i64
Converts this INT96 into an i64 representing the number of SECONDS since EPOCH
Will wrap around on overflow
Sourcepub fn to_millis(&self) -> i64
pub fn to_millis(&self) -> i64
Converts this INT96 into an i64 representing the number of MILLISECONDS since EPOCH
Will wrap around on overflow
Trait Implementations§
Source§impl ColumnIndexIterators for Int96
impl ColumnIndexIterators for Int96
Source§fn min_values_iter(
colidx: &ColumnIndexMetaData,
) -> impl Iterator<Item = Option<Self::Item>>
fn min_values_iter( colidx: &ColumnIndexMetaData, ) -> impl Iterator<Item = Option<Self::Item>>
Return iterator over the min values for the index
Source§fn max_values_iter(
colidx: &ColumnIndexMetaData,
) -> impl Iterator<Item = Option<Self::Item>>
fn max_values_iter( colidx: &ColumnIndexMetaData, ) -> impl Iterator<Item = Option<Self::Item>>
Return iterator over the max values for the index
Source§impl Ord for Int96
impl Ord for Int96
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Order Int96 correctly for (deprecated) timestamp types.
Note: this is done even though the Int96 type is deprecated and the spec does not define the sort order because some engines, notably Spark and Databricks Photon still write Int96 timestamps and rely on their order for optimization.
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Int96
impl PartialOrd for Int96
Source§impl SliceAsBytes for Int96
impl SliceAsBytes for Int96
impl Copy for Int96
impl Eq for Int96
impl StructuralPartialEq for Int96
Auto Trait Implementations§
impl Freeze for Int96
impl RefUnwindSafe for Int96
impl Send for Int96
impl Sync for Int96
impl Unpin for Int96
impl UnwindSafe for Int96
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