risingwave_common::array::arrow::arrow_53::arrow_impl

Trait FromIntoArrowWithUnit

source
trait FromIntoArrowWithUnit {
    type ArrowType;
    type TimestampType;

    // Required methods
    fn from_arrow_with_unit(
        value: Self::ArrowType,
        time_unit: Self::TimestampType,
    ) -> Self;
    fn into_arrow_with_unit(
        self,
        time_unit: Self::TimestampType,
    ) -> Self::ArrowType;
}
Expand description

Converts RisingWave value from and into Arrow value. Specifically used for converting timestamp types according to timeunit.

Required Associated Types§

source

type ArrowType

source

type TimestampType

The timestamp type used to distinguish different time units, only utilized when the Arrow type is a timestamp.

Required Methods§

source

fn from_arrow_with_unit( value: Self::ArrowType, time_unit: Self::TimestampType, ) -> Self

source

fn into_arrow_with_unit(self, time_unit: Self::TimestampType) -> Self::ArrowType

Object Safety§

This trait is not object safe.

Implementors§