Trait arrow::datatypes::ArrowPrimitiveType[][src]

pub trait ArrowPrimitiveType: 'static {
    type Native: ArrowNativeType;

    const DATA_TYPE: DataType;
    fn get_byte_width() -> usize { ... }
fn default_value() -> Self::Native { ... } }
Expand description

Trait bridging the dynamic-typed nature of Arrow (via DataType) with the static-typed nature of rust types (ArrowNativeType) for all types that implement ArrowNativeType.

Associated Types

type Native: ArrowNativeType[src]

Corresponding Rust native type for the primitive type.

Associated Constants

const DATA_TYPE: DataType[src]

the corresponding Arrow data type of this primitive type.

Provided methods

fn get_byte_width() -> usize[src]

Returns the byte width of this primitive type.

fn default_value() -> Self::Native[src]

Returns a default value of this primitive type.

This is useful for aggregate array ops like sum(), mean().

Implementors

impl ArrowPrimitiveType for Date32Type[src]

impl ArrowPrimitiveType for Date64Type[src]

impl ArrowPrimitiveType for DurationMicrosecondType[src]

impl ArrowPrimitiveType for DurationMillisecondType[src]

impl ArrowPrimitiveType for DurationNanosecondType[src]

impl ArrowPrimitiveType for DurationSecondType[src]

impl ArrowPrimitiveType for Float32Type[src]

impl ArrowPrimitiveType for Float64Type[src]

impl ArrowPrimitiveType for Int8Type[src]

impl ArrowPrimitiveType for Int16Type[src]

impl ArrowPrimitiveType for Int32Type[src]

impl ArrowPrimitiveType for Int64Type[src]

impl ArrowPrimitiveType for IntervalDayTimeType[src]

impl ArrowPrimitiveType for IntervalYearMonthType[src]

impl ArrowPrimitiveType for Time32MillisecondType[src]

impl ArrowPrimitiveType for Time32SecondType[src]

impl ArrowPrimitiveType for Time64MicrosecondType[src]

impl ArrowPrimitiveType for Time64NanosecondType[src]

impl ArrowPrimitiveType for TimestampMicrosecondType[src]

impl ArrowPrimitiveType for TimestampMillisecondType[src]

impl ArrowPrimitiveType for TimestampNanosecondType[src]

impl ArrowPrimitiveType for TimestampSecondType[src]

impl ArrowPrimitiveType for UInt8Type[src]

impl ArrowPrimitiveType for UInt16Type[src]

impl ArrowPrimitiveType for UInt32Type[src]

impl ArrowPrimitiveType for UInt64Type[src]