Type Alias ArrayRef

Source
pub type ArrayRef = Arc<dyn Array>;
Expand description

A reference counted pointer to a dynamic Array trait object.

Aliased Type§

struct ArrayRef { /* private fields */ }

Trait Implementations§

Source§

impl From<Canonical> for ArrayRef

This conversion is always “free” and should not touch underlying data. All it does is create an owned pointer to the underlying concrete array type.

This combined with the above ToCanonical impl for ArrayRef allows simple two-way conversions between arbitrary Vortex encodings and canonical Arrow-compatible encodings.

Source§

fn from(value: Canonical) -> Self

Converts to this type from the input type.
Source§

impl From<TemporalArray> for ArrayRef

Source§

fn from(value: TemporalArray) -> Self

Converts to this type from the input type.
Source§

impl FromArrowArray<&BooleanArray> for ArrayRef

Source§

fn from_arrow(value: &ArrowBooleanArray, nullable: bool) -> Self

Source§

impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for ArrayRef

Source§

fn from_arrow(value: &GenericByteArray<T>, nullable: bool) -> Self

Source§

impl<T: ByteViewType> FromArrowArray<&GenericByteViewArray<T>> for ArrayRef

Source§

fn from_arrow(value: &GenericByteViewArray<T>, nullable: bool) -> Self

Source§

impl<O: OffsetSizeTrait + NativePType> FromArrowArray<&GenericListArray<O>> for ArrayRef

Source§

fn from_arrow(value: &GenericListArray<O>, nullable: bool) -> Self

Source§

impl FromArrowArray<&NullArray> for ArrayRef

Source§

fn from_arrow(value: &ArrowNullArray, nullable: bool) -> Self

Source§

impl<T: ArrowPrimitiveType> FromArrowArray<&PrimitiveArray<T>> for ArrayRef

Source§

fn from_arrow(value: &ArrowPrimitiveArray<T>, nullable: bool) -> Self

Source§

impl FromArrowArray<&StructArray> for ArrayRef

Source§

fn from_arrow(value: &ArrowStructArray, nullable: bool) -> Self

Source§

impl FromArrowArray<Arc<dyn Array>> for ArrayRef

Source§

fn from_arrow(array: ArrowArrayRef, nullable: bool) -> Self

Source§

impl IntoArrowArray for ArrayRef

Source§

fn into_arrow_preferred(self) -> VortexResult<ArrowArrayRef>

Convert this ArrayRef into an Arrow ArrayRef by using the array’s preferred Arrow DataType.

Source§

fn into_arrow(self, data_type: &DataType) -> VortexResult<ArrowArrayRef>