risingwave_common::array::primitive_array

Trait PrimitiveArrayItemType

source
pub trait PrimitiveArrayItemType
where for<'a> Self: Sized + Default + PartialOrd + ZeroHeapSize + Scalar<ScalarRefType<'a> = Self> + ScalarRef<'a, ScalarType = Self>,
{ const DATA_TYPE: DataType; // Required methods fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl; fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>; fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>; fn array_type() -> ArrayType; fn to_protobuf<T: Write>(self, output: &mut T) -> ArrayResult<usize>; fn from_protobuf(cur: &mut Cursor<&[u8]>) -> ArrayResult<Self>; }
Expand description

Physical type of array items which have fixed size.

Required Associated Constants§

source

const DATA_TYPE: DataType

The data type.

Required Methods§

source

fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl

A helper to convert a primitive array to ArrayImpl.

source

fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>

A helper to convert ArrayImpl to self.

source

fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>

A helper to convert ArrayImpl to self.

source

fn array_type() -> ArrayType

Returns array type of the primitive array

source

fn to_protobuf<T: Write>(self, output: &mut T) -> ArrayResult<usize>

source

fn from_protobuf(cur: &mut Cursor<&[u8]>) -> ArrayResult<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PrimitiveArrayItemType for i16

source§

impl PrimitiveArrayItemType for i32

source§

impl PrimitiveArrayItemType for i64

Implementors§