Struct vortex_array::ArrayData

source ·
pub struct ArrayData(/* private fields */);
Expand description

A central type for all Vortex arrays, which are known length sequences of typed and possibly compressed data.

This is the main entrypoint for working with in-memory Vortex data, and dispatches work over the underlying encoding or memory representations.

Implementations§

source§

impl ArrayData

source

pub fn try_new_owned( encoding: EncodingRef, dtype: DType, len: usize, metadata: Arc<dyn ArrayMetadata>, buffer: Option<Buffer>, children: Arc<[ArrayData]>, statistics: StatsSet, ) -> VortexResult<Self>

source

pub fn try_new_viewed<F>( ctx: Arc<Context>, dtype: DType, len: usize, flatbuffer: Buffer, flatbuffer_init: F, buffers: Vec<Buffer>, ) -> VortexResult<Self>
where F: FnOnce(&[u8]) -> VortexResult<Array<'_>>,

source

pub fn encoding(&self) -> EncodingRef

Return the array’s encoding

source

pub fn len(&self) -> usize

Returns the number of logical elements in the array.

source

pub fn is_empty(&self) -> bool

Check whether the array has any data

source

pub fn is_canonical(&self) -> bool

Whether the array is of a canonical encoding.

source

pub fn is_arrow(&self) -> bool

Whether the array is fully zero-copy to Arrow (including children). This means any nested types, like Structs, Lists, and Extensions are not present.

source

pub fn is_constant(&self) -> bool

Return whether the array is constant.

source

pub fn as_constant(&self) -> Option<Scalar>

Return scalar value of this array if the array is constant

source

pub fn child<'a>( &'a self, idx: usize, dtype: &'a DType, len: usize, ) -> VortexResult<Self>

source

pub fn children(&self) -> Vec<ArrayData>

Returns a Vec of Arrays with all the array’s child arrays.

source

pub fn named_children(&self) -> Vec<(String, ArrayData)>

Returns a Vec of Arrays with all the array’s child arrays.

source

pub fn nchildren(&self) -> usize

Returns the number of child arrays

source

pub fn depth_first_traversal(&self) -> ArrayChildrenIterator

source

pub fn cumulative_nbuffers(&self) -> usize

Count the number of cumulative buffers encoded by self.

source

pub fn all_buffer_offsets(&self, alignment: usize) -> Vec<u64>

Return the buffer offsets and the total length of all buffers, assuming the given alignment. This includes all child buffers.

source

pub fn array_metadata(&self) -> &dyn ArrayMetadata

source

pub fn metadata<M: ArrayMetadata + Clone + for<'m> TryDeserializeArrayMetadata<'m>>( &self, ) -> VortexResult<&M>

source

pub fn metadata_bytes(&self) -> VortexResult<Cow<'_, [u8]>>

Get back the (possibly owned) metadata for the array.

View arrays will return a reference to their bytes, while heap-backed arrays must first serialize their metadata, returning an owned byte array to the caller.

source

pub fn buffer(&self) -> Option<&Buffer>

source

pub fn into_buffer(self) -> Option<Buffer>

source

pub fn into_array_iterator(self) -> impl ArrayIterator

source

pub fn into_array_stream(self) -> impl ArrayStream

source

pub fn is_encoding(&self, id: EncodingId) -> bool

Checks whether array is of a given encoding.

source§

impl ArrayData

source

pub fn nbytes(&self) -> usize

Total size of the array in bytes, including all children and buffers.

source§

impl ArrayData

source§

impl ArrayData

Provide functions on type-erased ArrayData to downcast into dtype-specific array variants.

Trait Implementations§

source§

impl<'a> Arbitrary<'a> for ArrayData

source§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
§

fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
source§

impl AsRef<ArrayData> for ArrayData

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for BoolArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for Canonical

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for ChunkedArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for ConstantArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for ExtensionArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for ListArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for NullArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for PrimitiveArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for SparseArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for StructArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for VarBinArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ArrayData> for VarBinViewArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<E> BinaryBooleanFn<ArrayData> for E
where E: BinaryBooleanFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn binary_boolean( &self, lhs: &ArrayData, rhs: &ArrayData, op: BinaryOperator, ) -> VortexResult<Option<ArrayData>>

source§

impl<E> BinaryNumericFn<ArrayData> for E
where E: BinaryNumericFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn binary_numeric( &self, lhs: &ArrayData, rhs: &ArrayData, op: BinaryNumericOperator, ) -> VortexResult<Option<ArrayData>>

source§

impl<E> CastFn<ArrayData> for E
where E: CastFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn cast(&self, array: &ArrayData, dtype: &DType) -> VortexResult<ArrayData>

source§

impl Clone for ArrayData

source§

fn clone(&self) -> ArrayData

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<E> CompareFn<ArrayData> for E
where E: CompareFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn compare( &self, lhs: &ArrayData, rhs: &ArrayData, operator: Operator, ) -> VortexResult<Option<ArrayData>>

Compares two arrays and returns a new boolean array with the result of the comparison. Or, returns None if comparison is not supported for these arrays.
source§

impl Debug for ArrayData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ArrayData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<E> FillForwardFn<ArrayData> for E
where E: FillForwardFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn fill_forward(&self, array: &ArrayData) -> VortexResult<ArrayData>

source§

impl<E> FillNullFn<ArrayData> for E
where E: FillNullFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn fill_null( &self, array: &ArrayData, fill_value: Scalar, ) -> VortexResult<ArrayData>

source§

impl<E> FilterFn<ArrayData> for E
where E: FilterFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn filter(&self, array: &ArrayData, mask: FilterMask) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl From<BooleanBuffer> for ArrayData

source§

fn from(value: BooleanBuffer) -> Self

Converts to this type from the input type.
source§

impl From<Buffer> for ArrayData

source§

fn from(value: Buffer) -> Self

Converts to this type from the input type.
source§

impl From<Canonical> for ArrayData

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 IntoCanonical impl for ArrayData 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<O> From<OffsetBuffer<O>> for ArrayData
where O: NativePType + OffsetSizeTrait,

source§

fn from(value: OffsetBuffer<O>) -> Self

Converts to this type from the input type.
source§

impl<T> From<ScalarBuffer<T>> for ArrayData
where T: ArrowNativeType + NativePType,

source§

fn from(value: ScalarBuffer<T>) -> Self

Converts to this type from the input type.
source§

impl From<TemporalArray> for ArrayData

source§

fn from(value: TemporalArray) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f16>> for ArrayData

source§

fn from(value: Vec<f16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f32>> for ArrayData

source§

fn from(value: Vec<f32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f64>> for ArrayData

source§

fn from(value: Vec<f64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i16>> for ArrayData

source§

fn from(value: Vec<i16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i32>> for ArrayData

source§

fn from(value: Vec<i32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i64>> for ArrayData

source§

fn from(value: Vec<i64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i8>> for ArrayData

source§

fn from(value: Vec<i8>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u16>> for ArrayData

source§

fn from(value: Vec<u16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u32>> for ArrayData

source§

fn from(value: Vec<u32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u64>> for ArrayData

source§

fn from(value: Vec<u64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8>> for ArrayData

source§

fn from(value: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl FromArrowArray<&BooleanArray> for ArrayData

source§

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

source§

impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for ArrayData
where <T as ByteArrayType>::Offset: NativePType,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl FromArrowArray<&NullArray> for ArrayData

source§

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

source§

impl<T: ArrowPrimitiveType> FromArrowArray<&PrimitiveArray<T>> for ArrayData
where <T as ArrowPrimitiveType>::Native: NativePType,

source§

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

source§

impl FromArrowArray<&StructArray> for ArrayData

source§

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

source§

impl FromArrowArray<Arc<dyn Array>> for ArrayData

source§

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

source§

impl FromIterator<ArrayData> for ChunkedArray

source§

fn from_iter<T: IntoIterator<Item = ArrayData>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<Buffer>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<Buffer>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<BufferString>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<BufferString>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<String>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<String>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<bool>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<bool>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i8>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i8>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u8>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u8>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl IndexOrd<Scalar> for ArrayData

source§

fn index_cmp(&self, idx: usize, elem: &Scalar) -> Option<Ordering>

PartialOrd of the value at index idx with elem. For example, if self[idx] > elem, return Some(Greater).
source§

fn index_lt(&self, idx: usize, elem: &V) -> bool

source§

fn index_le(&self, idx: usize, elem: &V) -> bool

source§

fn index_gt(&self, idx: usize, elem: &V) -> bool

source§

fn index_ge(&self, idx: usize, elem: &V) -> bool

source§

impl IntoCanonical for ArrayData

IntoCanonical implementation for Array.

Canonicalizing an array requires potentially decompressing, so this requires a roundtrip through the array’s internal codec.

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>

source§

impl<E> InvertFn<ArrayData> for E
where E: InvertFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn invert(&self, array: &ArrayData) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl Len for ArrayData

source§

fn len(&self) -> usize

source§

impl<E> LikeFn<ArrayData> for E
where E: LikeFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn like( &self, array: &ArrayData, pattern: &ArrayData, options: LikeOptions, ) -> VortexResult<ArrayData>

source§

impl<E> ScalarAtFn<ArrayData> for E
where E: ScalarAtFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn scalar_at(&self, array: &ArrayData, index: usize) -> VortexResult<Scalar>

source§

impl<E> SearchSortedFn<ArrayData> for E
where E: SearchSortedFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn search_sorted( &self, array: &ArrayData, value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &ArrayData, values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl<E> SearchSortedUsizeFn<ArrayData> for E
where E: SearchSortedUsizeFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn search_sorted_usize( &self, array: &ArrayData, value: usize, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_usize_many( &self, array: &ArrayData, values: &[usize], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

source§

impl<E> SliceFn<ArrayData> for E
where E: SliceFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn slice( &self, array: &ArrayData, start: usize, stop: usize, ) -> VortexResult<ArrayData>

Return a zero-copy slice of an array, between start (inclusive) and end (exclusive). If start >= stop, returns an empty array of the same type as self. Assumes that start or stop are out of bounds, may panic otherwise.
source§

impl<E> StatisticsVTable<ArrayData> for E
where E: StatisticsVTable<E::Array> + Encoding + 'static, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn compute_statistics( &self, array: &ArrayData, stat: Stat, ) -> VortexResult<StatsSet>

Compute the requested statistic. Can return additional stats.
source§

impl StatisticsVTable<ArrayData> for OpaqueEncoding

source§

fn compute_statistics( &self, _array: &Array, _stat: Stat, ) -> VortexResult<StatsSet>

Compute the requested statistic. Can return additional stats.
source§

impl<E> TakeFn<ArrayData> for E
where E: TakeFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn take( &self, array: &ArrayData, indices: &ArrayData, ) -> VortexResult<ArrayData>

Create a new array by taking the values from the array at the given indices. Read more
source§

unsafe fn take_unchecked( &self, array: &Array, indices: &ArrayData, ) -> VortexResult<ArrayData>

Create a new array by taking the values from the array at the given indices. Read more
source§

impl<'a> TryFrom<&'a ArrayData> for &'a BoolArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a ChunkedArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a ConstantArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a ExtensionArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a ListArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a NullArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a PrimitiveArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a SparseArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a StructArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a VarBinArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&'a ArrayData> for &'a VarBinViewArray

source§

type Error = VortexError

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

fn try_from(data: &'a ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for BoolArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for ChunkedArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for ConstantArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for Datum

source§

type Error = VortexError

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

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

Performs the conversion.
source§

impl TryFrom<ArrayData> for ExtensionArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for FilterMask

source§

type Error = VortexError

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

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

Performs the conversion.
source§

impl TryFrom<ArrayData> for ListArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for LogicalValidity

source§

type Error = VortexError

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

fn try_from(array: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for NullArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for PrimitiveArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for RecordBatch

source§

type Error = VortexError

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

fn try_from(value: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for SparseArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for StructArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for TemporalArray

source§

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

Try to specialize a generic Vortex array as a TemporalArray.

§Errors

If the provided Array does not have vortex.ext encoding, an error will be returned.

If the provided Array does not have recognized ExtMetadata corresponding to one of the known TemporalMetadata variants, an error is returned.

source§

type Error = VortexError

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

impl TryFrom<ArrayData> for Validity

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.
source§

impl TryFrom<ArrayData> for VarBinArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<ArrayData> for VarBinViewArray

source§

type Error = VortexError

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

fn try_from(data: ArrayData) -> VortexResult<Self>

Performs the conversion.
source§

impl TryFrom<RecordBatch> for ArrayData

source§

type Error = VortexError

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

fn try_from(value: RecordBatch) -> VortexResult<Self>

Performs the conversion.
source§

impl<E> ValidityVTable<ArrayData> for E
where E: ValidityVTable<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn is_valid(&self, array: &ArrayData, index: usize) -> bool

source§

fn logical_validity(&self, array: &ArrayData) -> LogicalValidity

source§

impl ValidityVTable<ArrayData> for OpaqueEncoding

source§

fn is_valid(&self, _array: &ArrayData, _index: usize) -> bool

source§

fn logical_validity(&self, _array: &ArrayData) -> LogicalValidity

source§

impl<E> VariantsVTable<ArrayData> for E
where E: VariantsVTable<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn as_null_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn NullArrayTrait>

source§

fn as_bool_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn BoolArrayTrait>

source§

fn as_primitive_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn PrimitiveArrayTrait>

source§

fn as_utf8_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn Utf8ArrayTrait>

source§

fn as_binary_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn BinaryArrayTrait>

source§

fn as_struct_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn StructArrayTrait>

source§

fn as_list_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn ListArrayTrait>

source§

fn as_extension_array<'a>( &self, array: &'a ArrayData, ) -> Option<&'a dyn ExtensionArrayTrait>

source§

impl VariantsVTable<ArrayData> for OpaqueEncoding

source§

fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>

source§

fn as_bool_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn BoolArrayTrait>

source§

fn as_primitive_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn PrimitiveArrayTrait>

source§

fn as_utf8_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn Utf8ArrayTrait>

source§

fn as_binary_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn BinaryArrayTrait>

source§

fn as_struct_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn StructArrayTrait>

source§

fn as_list_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn ListArrayTrait>

source§

fn as_extension_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn ExtensionArrayTrait>

source§

impl<E> VisitorVTable<ArrayData> for E
where E: VisitorVTable<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn accept( &self, array: &ArrayData, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>

source§

impl VisitorVTable<ArrayData> for OpaqueEncoding

source§

fn accept( &self, _array: &ArrayData, _visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArrayDType for T
where T: AsRef<ArrayData>,

source§

fn dtype(&self) -> &DType

source§

impl<T> ArrayEncodingRef for T
where T: AsRef<ArrayData>,

source§

fn encoding(&self) -> &'static dyn EncodingVTable

source§

impl<T> ArrayLen for T
where T: AsRef<ArrayData>,

source§

fn len(&self) -> usize

source§

fn is_empty(&self) -> bool

source§

impl<A> ArrayNBytes for A
where A: AsRef<ArrayData>,

source§

fn nbytes(&self) -> usize

Total size of the array in bytes, including all children and buffers.
source§

impl<T> ArrayStatistics for T
where T: AsRef<ArrayData>,

source§

fn statistics(&self) -> &dyn Statistics

source§

fn inherit_statistics(&self, parent: &dyn Statistics)

source§

impl<A> ArrayValidity for A
where A: AsRef<ArrayData>,

source§

fn is_valid(&self, index: usize) -> bool

Return whether the element at the given index is valid (true) or null (false).

source§

fn logical_validity(&self) -> LogicalValidity

Return the logical validity of the array.

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoArrayVariant for T
where T: IntoCanonical,

source§

fn into_null(self) -> Result<NullArray, VortexError>

source§

fn into_bool(self) -> Result<BoolArray, VortexError>

source§

fn into_primitive(self) -> Result<PrimitiveArray, VortexError>

source§

fn into_struct(self) -> Result<StructArray, VortexError>

source§

fn into_list(self) -> Result<ListArray, VortexError>

source§

fn into_varbinview(self) -> Result<VarBinViewArray, VortexError>

source§

fn into_extension(self) -> Result<ExtensionArray, VortexError>

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<S, T> SearchSorted<T> for S
where S: IndexOrd<T> + Len + ?Sized,

source§

fn search_sorted_by<F, N>( &self, find: F, side_find: N, side: SearchSortedSide, ) -> SearchResult
where F: FnMut(usize) -> Ordering, N: FnMut(usize) -> Ordering,

find function is used to find the element if it exists, if element exists side_find will be used to find desired index amongst equal values
source§

fn search_sorted(&self, value: &T, side: SearchSortedSide) -> SearchResult
where Self: IndexOrd<T>,

source§

impl<A> ToArrayData for A
where A: AsRef<ArrayData>,

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

§

impl<T> Ungil for T
where T: Send,