Trait arrow::datatypes::ArrowTimestampType
source · pub trait ArrowTimestampType: ArrowTemporalType<Native = i64> {
const UNIT: TimeUnit;
// Required method
fn make_value(naive: NaiveDateTime) -> Option<i64>;
// Provided method
fn get_time_unit() -> TimeUnit { ... }
}
Expand description
A timestamp type allows us to create array builders that take a timestamp.
Required Associated Constants§
Required Methods§
sourcefn make_value(naive: NaiveDateTime) -> Option<i64>
fn make_value(naive: NaiveDateTime) -> Option<i64>
Creates a ArrowTimestampType::Native from the provided NaiveDateTime
See DataType::Timestamp
for more information on timezone handling
Provided Methods§
sourcefn get_time_unit() -> TimeUnit
👎Deprecated: Use Self::UNIT
fn get_time_unit() -> TimeUnit
Returns the TimeUnit
of this timestamp.
Object Safety§
This trait is not object safe.