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§
type ArrowType
sourcetype TimestampType
type TimestampType
The timestamp type used to distinguish different time units, only utilized when the Arrow type is a timestamp.
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
Object Safety§
This trait is not object safe.