Struct arrow_array::types::IntervalYearMonthType
source · pub struct IntervalYearMonthType {}
Expand description
A “calendar” interval type in months.
Implementations§
source§impl IntervalYearMonthType
impl IntervalYearMonthType
sourcepub fn make_value(
years: i32,
months: i32
) -> <IntervalYearMonthType as ArrowPrimitiveType>::Native
pub fn make_value( years: i32, months: i32 ) -> <IntervalYearMonthType as ArrowPrimitiveType>::Native
Creates a IntervalYearMonthType::Native
Arguments
years
- The number of years (+/-) represented in this intervalmonths
- The number of months (+/-) represented in this interval
sourcepub fn to_months(
i: <IntervalYearMonthType as ArrowPrimitiveType>::Native
) -> i32
pub fn to_months( i: <IntervalYearMonthType as ArrowPrimitiveType>::Native ) -> i32
Turns a IntervalYearMonthType type into an i32 of months.
This operation is technically a no-op, it is included for comprehensiveness.
Arguments
i
- The IntervalYearMonthType::Native to convert
Trait Implementations§
source§impl ArrowPrimitiveType for IntervalYearMonthType
impl ArrowPrimitiveType for IntervalYearMonthType
source§fn get_byte_width() -> usize
fn get_byte_width() -> usize
Returns the byte width of this primitive type.
source§fn default_value() -> Self::Native
fn default_value() -> Self::Native
Returns a default value of this primitive type. Read more