pub struct Time64Microsecond;Expand description
Microseconds since midnight, as an i64.
use quiver::{Column, Time64Microsecond};
let column = Column::<Time64Microsecond>::from_values([3_600_000_000_i64]); // 01:00
assert_eq!(column.value(0), 3_600_000_000);This type is never instantiated — it only appears as a type parameter.
Trait Implementations§
Source§impl ConcreteType for Time64Microsecond
impl ConcreteType for Time64Microsecond
Source§fn datatype() -> DataType
fn datatype() -> DataType
The exact arrow datatype, built recursively
(including the nullability of inner fields).
Source§fn build(
values: impl Iterator<Item = Option<<Time64Microsecond as LogicalType>::Owned>>,
) -> Result<Arc<dyn Array>, ColumnError>
fn build( values: impl Iterator<Item = Option<<Time64Microsecond as LogicalType>::Owned>>, ) -> Result<Arc<dyn Array>, ColumnError>
Builds an arrow array of this datatype from owned values. Read more
impl InfallibleBuild for Time64Microsecond
Source§impl LogicalType for Time64Microsecond
impl LogicalType for Time64Microsecond
Source§type Typed = PrimitiveArray<Time64MicrosecondType>
type Typed = PrimitiveArray<Time64MicrosecondType>
The fully-downcast, validated representation of one column of this datatype.
Cheap to clone (arrow arrays are reference-counted).
Source§type Value<'a> = i64
type Value<'a> = i64
Zero-copy element view:
&'a str for Utf8, i64 for i64,
an iterator for List<T>, Option<…> for Option<T>.Source§type Owned = i64
type Owned = i64
The owned value of one element, used by the convenience constructors:
String for Utf8, Option<i64> for Option<i64>, Vec<…> for List<…>, etc.Source§fn downcast(
array: &dyn Array,
) -> Result<<Time64Microsecond as LogicalType>::Typed, ColumnError>
fn downcast( array: &dyn Array, ) -> Result<<Time64Microsecond as LogicalType>::Typed, ColumnError>
Validates that
array has an acceptable datatype, then recursively
downcasts it — checking the nulls of all children along the way. Read moreSource§fn is_null(
typed: &<Time64Microsecond as LogicalType>::Typed,
index: usize,
) -> bool
fn is_null( typed: &<Time64Microsecond as LogicalType>::Typed, index: usize, ) -> bool
Is the value at
index null?Source§fn value(
typed: &<Time64Microsecond as LogicalType>::Typed,
index: usize,
) -> <Time64Microsecond as LogicalType>::Value<'_>
fn value( typed: &<Time64Microsecond as LogicalType>::Typed, index: usize, ) -> <Time64Microsecond as LogicalType>::Value<'_>
The value at
index. Read moreSource§fn to_owned_value(
value: <Time64Microsecond as LogicalType>::Value<'_>,
) -> <Time64Microsecond as LogicalType>::Owned
fn to_owned_value( value: <Time64Microsecond as LogicalType>::Value<'_>, ) -> <Time64Microsecond as LogicalType>::Owned
Converts a borrowed element value into an owned one,
e.g.
&str → String.Source§impl PrimitiveType for Time64Microsecond
impl PrimitiveType for Time64Microsecond
Auto Trait Implementations§
impl Freeze for Time64Microsecond
impl RefUnwindSafe for Time64Microsecond
impl Send for Time64Microsecond
impl Sync for Time64Microsecond
impl Unpin for Time64Microsecond
impl UnsafeUnpin for Time64Microsecond
impl UnwindSafe for Time64Microsecond
Blanket Implementations§
impl<T> Allocation for T
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