pub struct Array(/* 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 Array
impl Array
pub fn try_new_owned( encoding: VTableRef, dtype: DType, len: usize, metadata: Option<ByteBuffer>, buffers: Option<Box<[ByteBuffer]>>, children: Option<Box<[Array]>>, statistics: StatsSet, ) -> VortexResult<Self>
pub fn try_new_viewed<F>( ctx: ContextRef, dtype: DType, len: usize, flatbuffer: FlatBuffer, flatbuffer_init: F, buffers: Vec<ByteBuffer>, ) -> VortexResult<Self>
Sourcepub fn encoding(&self) -> EncodingId
pub fn encoding(&self) -> EncodingId
Return the array’s encoding ID.
Sourcepub fn is_canonical(&self) -> bool
pub fn is_canonical(&self) -> bool
Whether the array is of a canonical encoding.
Sourcepub fn is_arrow(&self) -> bool
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.
Sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Return whether the array is constant.
Sourcepub fn as_constant(&self) -> Option<Scalar>
pub fn as_constant(&self) -> Option<Scalar>
Return scalar value of this array if the array is constant
pub fn child<'a>( &'a self, idx: usize, dtype: &'a DType, len: usize, ) -> VortexResult<Self>
Sourcepub fn children(&self) -> Vec<Array>
pub fn children(&self) -> Vec<Array>
Returns a Vec of Arrays with all the array’s child arrays.
Sourcepub fn named_children(&self) -> Vec<(String, Array)>
pub fn named_children(&self) -> Vec<(String, Array)>
Returns a Vec of Arrays with all the array’s child arrays.
pub fn depth_first_traversal(&self) -> ArrayChildrenIterator ⓘ
Sourcepub fn cumulative_nbuffers(&self) -> usize
pub fn cumulative_nbuffers(&self) -> usize
Count the number of cumulative buffers encoded by self.
Sourcepub fn all_buffer_offsets(&self, alignment: usize) -> Vec<u64>
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.
pub fn metadata_bytes(&self) -> Option<&[u8]>
pub fn nbuffers(&self) -> usize
pub fn byte_buffer(&self, index: usize) -> Option<&ByteBuffer>
pub fn byte_buffers(&self) -> impl Iterator<Item = ByteBuffer> + '_
pub fn into_byte_buffer(self, index: usize) -> Option<ByteBuffer>
pub fn into_array_iterator(self) -> impl ArrayIterator
pub fn into_array_stream(self) -> impl ArrayStream
Sourcepub fn is_encoding(&self, id: EncodingId) -> bool
pub fn is_encoding(&self, id: EncodingId) -> bool
Checks whether array is of a given encoding.
pub fn try_downcast_ref<E: Encoding>(&self) -> VortexResult<(&E::Array, &E)>
Source§impl Array
impl Array
pub fn statistics(&self) -> &(dyn Statistics + '_)
pub fn inherit_statistics(&self, parent: &dyn Statistics)
Source§impl Array
impl Array
pub fn tree_display(&self) -> TreeDisplayWrapper<'_>
Source§impl Array
impl Array
Sourcepub fn is_valid(&self, index: usize) -> VortexResult<bool>
pub fn is_valid(&self, index: usize) -> VortexResult<bool>
Return whether the element at the given index is valid (true) or null (false).
Sourcepub fn all_valid(&self) -> VortexResult<bool>
pub fn all_valid(&self) -> VortexResult<bool>
Return whether all elements in the array are valid.
Sourcepub fn null_count(&self) -> VortexResult<usize>
pub fn null_count(&self) -> VortexResult<usize>
Return the number of null elements in the array.
Sourcepub fn validity_mask(&self) -> VortexResult<Mask>
pub fn validity_mask(&self) -> VortexResult<Mask>
Return the canonical validity of the array as a Mask
.
Source§impl Array
Provide functions on type-erased Array to downcast into dtype-specific array variants.
impl Array
Provide functions on type-erased Array to downcast into dtype-specific array variants.
pub fn as_null_array(&self) -> Option<&dyn NullArrayTrait>
pub fn as_bool_array(&self) -> Option<&dyn BoolArrayTrait>
pub fn as_primitive_array(&self) -> Option<&dyn PrimitiveArrayTrait>
pub fn as_utf8_array(&self) -> Option<&dyn Utf8ArrayTrait>
pub fn as_binary_array(&self) -> Option<&dyn BinaryArrayTrait>
pub fn as_struct_array(&self) -> Option<&dyn StructArrayTrait>
pub fn as_list_array(&self) -> Option<&dyn ListArrayTrait>
pub fn as_extension_array(&self) -> Option<&dyn ExtensionArrayTrait>
Trait Implementations§
Source§impl AsRef<Array> for ChunkedArray
impl AsRef<Array> for ChunkedArray
Source§impl AsRef<Array> for ConstantArray
impl AsRef<Array> for ConstantArray
Source§impl AsRef<Array> for ExtensionArray
impl AsRef<Array> for ExtensionArray
Source§impl AsRef<Array> for PrimitiveArray
impl AsRef<Array> for PrimitiveArray
Source§impl AsRef<Array> for StructArray
impl AsRef<Array> for StructArray
Source§impl AsRef<Array> for VarBinArray
impl AsRef<Array> for VarBinArray
Source§impl AsRef<Array> for VarBinViewArray
impl AsRef<Array> for VarBinViewArray
Source§impl<E> BinaryBooleanFn<Array> for Ewhere
E: BinaryBooleanFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> BinaryBooleanFn<Array> for Ewhere
E: BinaryBooleanFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
fn binary_boolean( &self, lhs: &Array, rhs: &Array, op: BinaryOperator, ) -> VortexResult<Option<Array>>
Source§impl<E> BinaryNumericFn<Array> for Ewhere
E: BinaryNumericFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> BinaryNumericFn<Array> for Ewhere
E: BinaryNumericFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
fn binary_numeric( &self, lhs: &Array, rhs: &Array, op: BinaryNumericOperator, ) -> VortexResult<Option<Array>>
Source§impl<E> CanonicalVTable<Array> for E
impl<E> CanonicalVTable<Array> for E
fn into_canonical(&self, data: Array) -> VortexResult<Canonical>
Source§impl CanonicalVTable<Array> for OpaqueEncoding
impl CanonicalVTable<Array> for OpaqueEncoding
fn into_canonical(&self, _array: Array) -> VortexResult<Canonical>
Source§impl<E> FillForwardFn<Array> for Ewhere
E: FillForwardFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> FillForwardFn<Array> for Ewhere
E: FillForwardFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
fn fill_forward(&self, array: &Array) -> VortexResult<Array>
Source§impl<E> FillNullFn<Array> for Ewhere
E: FillNullFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> FillNullFn<Array> for Ewhere
E: FillNullFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
Source§impl From<Array> for ArrayParts
Convert an Array
into ArrayParts
.
impl From<Array> for ArrayParts
Convert an Array
into ArrayParts
.
Source§impl From<BooleanBuffer> for Array
impl From<BooleanBuffer> for Array
Source§fn from(value: BooleanBuffer) -> Self
fn from(value: BooleanBuffer) -> Self
Source§impl From<Buffer> for Array
impl From<Buffer> for Array
Source§fn from(value: ArrowBuffer) -> Self
fn from(value: ArrowBuffer) -> Self
Source§impl From<Canonical> for Array
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.
impl From<Canonical> for Array
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 Array allows simple two-way conversions between arbitrary Vortex encodings and canonical Arrow-compatible encodings.
Source§impl<O> From<OffsetBuffer<O>> for Arraywhere
O: NativePType + OffsetSizeTrait,
impl<O> From<OffsetBuffer<O>> for Arraywhere
O: NativePType + OffsetSizeTrait,
Source§fn from(value: OffsetBuffer<O>) -> Self
fn from(value: OffsetBuffer<O>) -> Self
Source§impl<T> From<ScalarBuffer<T>> for Arraywhere
T: ArrowNativeType + NativePType,
impl<T> From<ScalarBuffer<T>> for Arraywhere
T: ArrowNativeType + NativePType,
Source§fn from(value: ScalarBuffer<T>) -> Self
fn from(value: ScalarBuffer<T>) -> Self
Source§impl From<TemporalArray> for Array
impl From<TemporalArray> for Array
Source§fn from(value: TemporalArray) -> Self
fn from(value: TemporalArray) -> Self
Source§impl FromArrowArray<&BooleanArray> for Array
impl FromArrowArray<&BooleanArray> for Array
fn from_arrow(value: &ArrowBooleanArray, nullable: bool) -> Self
Source§impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for Array
impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for Array
fn from_arrow(value: &GenericByteArray<T>, nullable: bool) -> Self
Source§impl<T: ByteViewType> FromArrowArray<&GenericByteViewArray<T>> for Array
impl<T: ByteViewType> FromArrowArray<&GenericByteViewArray<T>> for Array
fn from_arrow(value: &GenericByteViewArray<T>, nullable: bool) -> Self
Source§impl<O: OffsetSizeTrait + NativePType> FromArrowArray<&GenericListArray<O>> for Array
impl<O: OffsetSizeTrait + NativePType> FromArrowArray<&GenericListArray<O>> for Array
fn from_arrow(value: &GenericListArray<O>, nullable: bool) -> Self
Source§impl FromArrowArray<&NullArray> for Array
impl FromArrowArray<&NullArray> for Array
fn from_arrow(value: &ArrowNullArray, nullable: bool) -> Self
Source§impl<T: ArrowPrimitiveType> FromArrowArray<&PrimitiveArray<T>> for Array
impl<T: ArrowPrimitiveType> FromArrowArray<&PrimitiveArray<T>> for Array
fn from_arrow(value: &ArrowPrimitiveArray<T>, nullable: bool) -> Self
Source§impl FromArrowArray<&StructArray> for Array
impl FromArrowArray<&StructArray> for Array
fn from_arrow(value: &ArrowStructArray, nullable: bool) -> Self
Source§impl FromArrowArray<Arc<dyn Array>> for Array
impl FromArrowArray<Arc<dyn Array>> for Array
fn from_arrow(array: ArrowArrayRef, nullable: bool) -> Self
Source§impl FromIterator<Array> for ChunkedArray
impl FromIterator<Array> for ChunkedArray
Source§impl FromIterator<Option<Buffer<u8>>> for Array
impl FromIterator<Option<Buffer<u8>>> for Array
Source§fn from_iter<T: IntoIterator<Item = Option<ByteBuffer>>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Option<ByteBuffer>>>(iter: T) -> Self
Source§impl FromIterator<Option<BufferString>> for Array
impl FromIterator<Option<BufferString>> for Array
Source§fn from_iter<T: IntoIterator<Item = Option<BufferString>>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Option<BufferString>>>(iter: T) -> Self
Source§impl IndexOrd<Scalar> for Array
impl IndexOrd<Scalar> for Array
Source§fn index_cmp(&self, idx: usize, elem: &Scalar) -> Option<Ordering>
fn index_cmp(&self, idx: usize, elem: &Scalar) -> Option<Ordering>
idx
with elem
.
For example, if self[idx] > elem, return Some(Greater).fn index_lt(&self, idx: usize, elem: &V) -> bool
fn index_le(&self, idx: usize, elem: &V) -> bool
fn index_gt(&self, idx: usize, elem: &V) -> bool
fn index_ge(&self, idx: usize, elem: &V) -> bool
Source§impl IntoArrowArray for Array
impl IntoArrowArray for Array
Source§fn into_arrow_preferred(self) -> VortexResult<ArrayRef>
fn into_arrow_preferred(self) -> VortexResult<ArrayRef>
fn into_arrow(self, data_type: &DataType) -> VortexResult<ArrayRef>
Source§impl IntoCanonical for Array
impl IntoCanonical for Array
Source§fn into_canonical(self) -> VortexResult<Canonical>
fn into_canonical(self) -> VortexResult<Canonical>
Source§impl<E> LikeFn<Array> for E
impl<E> LikeFn<Array> for E
fn like( &self, array: Array, pattern: &Array, options: LikeOptions, ) -> VortexResult<Option<Array>>
Source§impl MetadataVTable<Array> for OpaqueEncoding
impl MetadataVTable<Array> for OpaqueEncoding
fn validate_metadata(&self, _metadata: Option<&[u8]>) -> VortexResult<()>
fn display_metadata(&self, _array: &Array, f: &mut Formatter<'_>) -> Result
Source§impl<E> ScalarAtFn<Array> for Ewhere
E: ScalarAtFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> ScalarAtFn<Array> for Ewhere
E: ScalarAtFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
Source§impl<E> SearchSortedFn<Array> for Ewhere
E: SearchSortedFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> SearchSortedFn<Array> for Ewhere
E: SearchSortedFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
fn search_sorted( &self, array: &Array, value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>
Source§fn search_sorted_many(
&self,
array: &Array,
values: &[Scalar],
side: SearchSortedSide,
) -> VortexResult<Vec<SearchResult>>
fn search_sorted_many( &self, array: &Array, values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>
Source§impl<E> SearchSortedUsizeFn<Array> for Ewhere
E: SearchSortedUsizeFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> SearchSortedUsizeFn<Array> for Ewhere
E: SearchSortedUsizeFn<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
fn search_sorted_usize( &self, array: &Array, value: usize, side: SearchSortedSide, ) -> VortexResult<SearchResult>
fn search_sorted_usize_many( &self, array: &Array, values: &[usize], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>
Source§impl<E> SliceFn<Array> for E
impl<E> SliceFn<Array> for E
Source§fn slice(&self, array: &Array, start: usize, stop: usize) -> VortexResult<Array>
fn slice(&self, array: &Array, start: usize, stop: usize) -> VortexResult<Array>
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 Statistics for Array
impl Statistics for Array
Source§fn get(&self, stat: Stat) -> Option<Precision<ScalarValue>>
fn get(&self, stat: Stat) -> Option<Precision<ScalarValue>>
Source§fn compute(&self, stat: Stat) -> Option<ScalarValue>
fn compute(&self, stat: Stat) -> Option<ScalarValue>
fn retain_only(&self, stats: &[Stat])
Source§fn compute_all(&self, stats: &[Stat]) -> VortexResult<StatsSet>
fn compute_all(&self, stats: &[Stat]) -> VortexResult<StatsSet>
Source§impl<E> StatisticsVTable<Array> for Ewhere
E: StatisticsVTable<E::Array> + Encoding + 'static,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> StatisticsVTable<Array> for Ewhere
E: StatisticsVTable<E::Array> + Encoding + 'static,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
Source§fn compute_statistics(
&self,
array: &Array,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &Array, stat: Stat, ) -> VortexResult<StatsSet>
Source§impl StatisticsVTable<Array> for OpaqueEncoding
impl StatisticsVTable<Array> for OpaqueEncoding
Source§fn compute_statistics(
&self,
_array: &Array,
_stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, _array: &Array, _stat: Stat, ) -> VortexResult<StatsSet>
Source§impl<E> TakeFn<Array> for E
impl<E> TakeFn<Array> for E
Source§unsafe fn take_unchecked(
&self,
array: &A,
indices: &Array,
) -> VortexResult<Array>
unsafe fn take_unchecked( &self, array: &A, indices: &Array, ) -> VortexResult<Array>
Source§impl<E> ToArrowFn<Array> for E
impl<E> ToArrowFn<Array> for E
Source§fn preferred_arrow_data_type(
&self,
array: &Array,
) -> VortexResult<Option<DataType>>
fn preferred_arrow_data_type( &self, array: &Array, ) -> VortexResult<Option<DataType>>
DataType
of the encoding, or None of the canonical
DataType
for the array’s Vortex vortex_dtype::DType
should be used.Source§impl<'a> TryFrom<&'a Array> for &'a BoolArray
impl<'a> TryFrom<&'a Array> for &'a BoolArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a ChunkedArray
impl<'a> TryFrom<&'a Array> for &'a ChunkedArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a ConstantArray
impl<'a> TryFrom<&'a Array> for &'a ConstantArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a ExtensionArray
impl<'a> TryFrom<&'a Array> for &'a ExtensionArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a ListArray
impl<'a> TryFrom<&'a Array> for &'a ListArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a NullArray
impl<'a> TryFrom<&'a Array> for &'a NullArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a PrimitiveArray
impl<'a> TryFrom<&'a Array> for &'a PrimitiveArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a StructArray
impl<'a> TryFrom<&'a Array> for &'a StructArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a VarBinArray
impl<'a> TryFrom<&'a Array> for &'a VarBinArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl<'a> TryFrom<&'a Array> for &'a VarBinViewArray
impl<'a> TryFrom<&'a Array> for &'a VarBinViewArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: &'a Array) -> VortexResult<Self>
fn try_from(data: &'a Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for BoolArray
impl TryFrom<Array> for BoolArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for ChunkedArray
impl TryFrom<Array> for ChunkedArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for ConstantArray
impl TryFrom<Array> for ConstantArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for ExtensionArray
impl TryFrom<Array> for ExtensionArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for ListArray
impl TryFrom<Array> for ListArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for NullArray
impl TryFrom<Array> for NullArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for PrimitiveArray
impl TryFrom<Array> for PrimitiveArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for RecordBatch
impl TryFrom<Array> for RecordBatch
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(value: Array) -> VortexResult<Self>
fn try_from(value: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for StructArray
impl TryFrom<Array> for StructArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for TemporalArray
impl TryFrom<Array> for TemporalArray
Source§fn try_from(value: Array) -> Result<Self, Self::Error>
fn try_from(value: Array) -> 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
type Error = VortexError
Source§impl TryFrom<Array> for VarBinArray
impl TryFrom<Array> for VarBinArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<Array> for VarBinViewArray
impl TryFrom<Array> for VarBinViewArray
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(data: Array) -> VortexResult<Self>
fn try_from(data: Array) -> VortexResult<Self>
Source§impl TryFrom<RecordBatch> for Array
impl TryFrom<RecordBatch> for Array
Source§type Error = VortexError
type Error = VortexError
Source§fn try_from(value: RecordBatch) -> VortexResult<Self>
fn try_from(value: RecordBatch) -> VortexResult<Self>
Source§impl<E> ValidateVTable<Array> for Ewhere
E: ValidateVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> ValidateVTable<Array> for Ewhere
E: ValidateVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
Source§impl ValidateVTable<Array> for OpaqueEncoding
impl ValidateVTable<Array> for OpaqueEncoding
Source§impl<E> ValidityVTable<Array> for Ewhere
E: ValidityVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> ValidityVTable<Array> for Ewhere
E: ValidityVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
Source§fn is_valid(&self, array: &Array, index: usize) -> VortexResult<bool>
fn is_valid(&self, array: &Array, index: usize) -> VortexResult<bool>
index
item is valid.Source§fn all_valid(&self, array: &Array) -> VortexResult<bool>
fn all_valid(&self, array: &Array) -> VortexResult<bool>
Source§fn invalid_count(&self, array: &Array) -> VortexResult<usize>
fn invalid_count(&self, array: &Array) -> VortexResult<usize>
fn validity_mask(&self, array: &Array) -> VortexResult<Mask>
Source§impl ValidityVTable<Array> for OpaqueEncoding
impl ValidityVTable<Array> for OpaqueEncoding
Source§fn is_valid(&self, _array: &Array, _index: usize) -> VortexResult<bool>
fn is_valid(&self, _array: &Array, _index: usize) -> VortexResult<bool>
index
item is valid.Source§fn all_valid(&self, _array: &Array) -> VortexResult<bool>
fn all_valid(&self, _array: &Array) -> VortexResult<bool>
fn validity_mask(&self, _array: &Array) -> VortexResult<Mask>
Source§fn invalid_count(&self, array: &Array) -> VortexResult<usize>
fn invalid_count(&self, array: &Array) -> VortexResult<usize>
Source§impl<E> VariantsVTable<Array> for Ewhere
E: VariantsVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> VariantsVTable<Array> for Ewhere
E: VariantsVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
fn as_null_array<'a>(&self, array: &'a Array) -> Option<&'a dyn NullArrayTrait>
fn as_bool_array<'a>(&self, array: &'a Array) -> Option<&'a dyn BoolArrayTrait>
fn as_primitive_array<'a>( &self, array: &'a Array, ) -> Option<&'a dyn PrimitiveArrayTrait>
fn as_utf8_array<'a>(&self, array: &'a Array) -> Option<&'a dyn Utf8ArrayTrait>
fn as_binary_array<'a>( &self, array: &'a Array, ) -> Option<&'a dyn BinaryArrayTrait>
fn as_struct_array<'a>( &self, array: &'a Array, ) -> Option<&'a dyn StructArrayTrait>
fn as_list_array<'a>(&self, array: &'a Array) -> Option<&'a dyn ListArrayTrait>
fn as_extension_array<'a>( &self, array: &'a Array, ) -> Option<&'a dyn ExtensionArrayTrait>
Source§impl VariantsVTable<Array> for OpaqueEncoding
impl VariantsVTable<Array> for OpaqueEncoding
fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>
fn as_bool_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn BoolArrayTrait>
fn as_primitive_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn PrimitiveArrayTrait>
fn as_utf8_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn Utf8ArrayTrait>
fn as_binary_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn BinaryArrayTrait>
fn as_struct_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn StructArrayTrait>
fn as_list_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn ListArrayTrait>
fn as_extension_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn ExtensionArrayTrait>
Source§impl<E> VisitorVTable<Array> for Ewhere
E: VisitorVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
impl<E> VisitorVTable<Array> for Ewhere
E: VisitorVTable<E::Array> + Encoding,
for<'a> &'a E::Array: TryFrom<&'a Array, Error = VortexError>,
fn accept( &self, array: &Array, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
Source§impl VisitorVTable<Array> for OpaqueEncoding
impl VisitorVTable<Array> for OpaqueEncoding
fn accept( &self, _array: &Array, _visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
Auto Trait Implementations§
impl !Freeze for Array
impl !RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl !UnwindSafe for Array
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoArrayVariant for Twhere
T: IntoCanonical,
impl<T> IntoArrayVariant for Twhere
T: IntoCanonical,
fn into_null(self) -> Result<NullArray, VortexError>
fn into_bool(self) -> Result<BoolArray, VortexError>
fn into_primitive(self) -> Result<PrimitiveArray, VortexError>
fn into_struct(self) -> Result<StructArray, VortexError>
fn into_list(self) -> Result<ListArray, VortexError>
fn into_varbinview(self) -> Result<VarBinViewArray, VortexError>
fn into_extension(self) -> Result<ExtensionArray, VortexError>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<E> MetadataVTable<Array> for Ewhere
E: Encoding,
impl<E> MetadataVTable<Array> for Ewhere
E: Encoding,
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out
indicating that a T
is niched.