Type Alias ArrayRef

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

A reference counted pointer to a dynamic Array trait object.

Aliased Type§

pub 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 FromArrowArray<&PrimitiveArray<Date32Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Date64Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Decimal128Type>> for ArrayRef

Source§

fn from_arrow( array: &ArrowPrimitiveArray<Decimal128Type>, nullable: bool, ) -> Self

Source§

impl FromArrowArray<&PrimitiveArray<Decimal256Type>> for ArrayRef

Source§

fn from_arrow( array: &ArrowPrimitiveArray<Decimal256Type>, nullable: bool, ) -> Self

Source§

impl FromArrowArray<&PrimitiveArray<Float16Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Float32Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Float64Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Int16Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Int32Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Int64Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Int8Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Time32MillisecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Time32SecondType>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<Time64MicrosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<Time64NanosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampMicrosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampMillisecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampNanosecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<TimestampSecondType>> for ArrayRef

Source§

impl FromArrowArray<&PrimitiveArray<UInt16Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<UInt32Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<UInt64Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&PrimitiveArray<UInt8Type>> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&StructArray> for ArrayRef

Source§

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

Source§

impl FromArrowArray<&dyn Array> for ArrayRef

Source§

fn from_arrow(array: &dyn ArrowArray, nullable: bool) -> Self

Source§

impl IntoArrowArray for ArrayRef

Source§

fn into_arrow_preferred(self) -> VortexResult<ArrowArrayRef>

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

Source§

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

Source§

impl TryFrom<&ArrayData> for ArrayRef

Source§

type Error = VortexError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &ArrayData) -> Result<Self, Self::Error>

Performs the conversion.