Skip to main content

Time64Microsecond

Struct Time64Microsecond 

Source
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

Source§

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>

Builds an arrow array of this datatype from owned values. Read more
Source§

impl InfallibleBuild for Time64Microsecond

Source§

impl LogicalType for Time64Microsecond

Source§

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

Zero-copy element view: &'a str for Utf8, i64 for i64, an iterator for List<T>, Option<…> for Option<T>.
Source§

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>

Validates that array has an acceptable datatype, then recursively downcasts it — checking the nulls of all children along the way. Read more
Source§

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<'_>

The value at index. Read more
Source§

fn to_owned_value( value: <Time64Microsecond as LogicalType>::Value<'_>, ) -> <Time64Microsecond as LogicalType>::Owned

Converts a borrowed element value into an owned one, e.g. &strString.
Source§

const NULLABLE: bool = false

May the values at this level be null? (true only for Option<…>)
Source§

impl PrimitiveType for Time64Microsecond

Source§

type Native = i64

The in-memory element type: f32 for f32, i64 for Timestamp<…>, [u8; N] for [u8; N], etc.
Source§

fn values(typed: &<Time64Microsecond as LogicalType>::Typed) -> &[i64]

All values as one contiguous slice.
Source§

impl RefType for Time64Microsecond

Source§

type Ref = i64

The borrow target: str for Utf8, i64 for i64, etc.
Source§

fn value_ref( typed: &<Time64Microsecond as LogicalType>::Typed, index: usize, ) -> &i64

A reference to the value at index. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.