pub struct ChunkedArray { /* private fields */ }
Implementations§
Source§impl ChunkedArray
impl ChunkedArray
pub fn try_new(chunks: Vec<Array>, dtype: DType) -> VortexResult<Self>
pub fn chunk(&self, idx: usize) -> VortexResult<Array>
pub fn nchunks(&self) -> usize
pub fn chunk_offsets(&self) -> Array
pub fn chunks(&self) -> impl Iterator<Item = Array> + '_
pub fn array_iterator(&self) -> impl ArrayIterator + '_
pub fn array_stream(&self) -> impl ArrayStream + '_
pub fn rechunk( &self, target_bytesize: usize, target_rowsize: usize, ) -> VortexResult<Self>
Trait Implementations§
Source§impl AcceptArrayVisitor for ChunkedArray
impl AcceptArrayVisitor for ChunkedArray
fn accept(&self, visitor: &mut dyn ArrayVisitor) -> VortexResult<()>
Source§impl ArrayCompute for ChunkedArray
impl ArrayCompute for ChunkedArray
Source§fn cast(&self) -> Option<&dyn CastFn>
fn cast(&self) -> Option<&dyn CastFn>
Implemented for arrays that can be casted to different types. Read more
Source§fn compare(
&self,
other: &Array,
operator: Operator,
) -> Option<VortexResult<Array>>
fn compare( &self, other: &Array, operator: Operator, ) -> Option<VortexResult<Array>>
Binary operator implementation for arrays against other arrays. Read more
Source§fn scalar_at(&self) -> Option<&dyn ScalarAtFn>
fn scalar_at(&self) -> Option<&dyn ScalarAtFn>
Single item indexing on Vortex arrays. Read more
Source§fn subtract_scalar(&self) -> Option<&dyn SubtractScalarFn>
fn subtract_scalar(&self) -> Option<&dyn SubtractScalarFn>
Broadcast subtraction of scalar from Vortex array. Read more
Source§fn take(&self) -> Option<&dyn TakeFn>
fn take(&self) -> Option<&dyn TakeFn>
Take a set of indices from an array. This often forces allocations and decoding of
the receiver. Read more
Source§fn filter(&self) -> Option<&dyn FilterFn>
fn filter(&self) -> Option<&dyn FilterFn>
Filtering function on arrays of predicates. Read more
Source§fn fill_forward(&self) -> Option<&dyn FillForwardFn>
fn fill_forward(&self) -> Option<&dyn FillForwardFn>
Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
Source§fn search_sorted(&self) -> Option<&dyn SearchSortedFn>
fn search_sorted(&self) -> Option<&dyn SearchSortedFn>
Perform a search over an ordered array. Read more
Source§impl ArrayStatisticsCompute for ChunkedArray
impl ArrayStatisticsCompute for ChunkedArray
Source§fn compute_statistics(&self, stat: Stat) -> VortexResult<StatsSet>
fn compute_statistics(&self, stat: Stat) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl ArrayTrait for ChunkedArray
impl ArrayTrait for ChunkedArray
Source§impl ArrayValidity for ChunkedArray
impl ArrayValidity for ChunkedArray
fn is_valid(&self, index: usize) -> bool
fn logical_validity(&self) -> LogicalValidity
Source§impl ArrayVariants for ChunkedArray
impl ArrayVariants for ChunkedArray
Chunked arrays support all DTypes
fn as_null_array(&self) -> Option<&dyn NullArrayTrait>
fn as_bool_array(&self) -> Option<&dyn BoolArrayTrait>
fn as_primitive_array(&self) -> Option<&dyn PrimitiveArrayTrait>
fn as_utf8_array(&self) -> Option<&dyn Utf8ArrayTrait>
fn as_binary_array(&self) -> Option<&dyn BinaryArrayTrait>
fn as_struct_array(&self) -> Option<&dyn StructArrayTrait>
fn as_list_array(&self) -> Option<&dyn ListArrayTrait>
fn as_extension_array(&self) -> Option<&dyn ExtensionArrayTrait>
fn as_null_array_unchecked(&self) -> &dyn NullArrayTrait
fn as_bool_array_unchecked(&self) -> &dyn BoolArrayTrait
fn as_primitive_array_unchecked(&self) -> &dyn PrimitiveArrayTrait
fn as_utf8_array_unchecked(&self) -> &dyn Utf8ArrayTrait
fn as_binary_array_unchecked(&self) -> &dyn BinaryArrayTrait
fn as_struct_array_unchecked(&self) -> &dyn StructArrayTrait
fn as_list_array_unchecked(&self) -> &dyn ListArrayTrait
fn as_extension_array_unchecked(&self) -> &dyn ExtensionArrayTrait
Source§impl AsRef<Array> for ChunkedArray
impl AsRef<Array> for ChunkedArray
Source§impl BoolArrayTrait for ChunkedArray
impl BoolArrayTrait for ChunkedArray
Source§fn maybe_null_indices_iter(&self) -> Box<dyn Iterator<Item = usize>>
fn maybe_null_indices_iter(&self) -> Box<dyn Iterator<Item = usize>>
An iterator over the sorted indices of set values in the underlying boolean array
good to array with low number of set values.
Source§fn maybe_null_slices_iter(&self) -> Box<dyn Iterator<Item = (usize, usize)>>
fn maybe_null_slices_iter(&self) -> Box<dyn Iterator<Item = (usize, usize)>>
An iterator over the sorted disjoint contiguous range set values in the underlying boolean
array good for arrays with only long runs of set values.
Source§fn invert(&self) -> VortexResult<Array>where
Self: Clone,
fn invert(&self) -> VortexResult<Array>where
Self: Clone,
Return a new inverted version of this array. Read more
fn true_count(&self) -> usize
Source§impl CastFn for ChunkedArray
impl CastFn for ChunkedArray
Source§impl Clone for ChunkedArray
impl Clone for ChunkedArray
Source§fn clone(&self) -> ChunkedArray
fn clone(&self) -> ChunkedArray
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CompareFn for ChunkedArray
impl CompareFn for ChunkedArray
Source§impl Debug for ChunkedArray
impl Debug for ChunkedArray
Source§impl ExtensionArrayTrait for ChunkedArray
impl ExtensionArrayTrait for ChunkedArray
Source§impl FilterFn for ChunkedArray
impl FilterFn for ChunkedArray
Source§impl From<ChunkedArray> for Array
impl From<ChunkedArray> for Array
Source§fn from(value: ChunkedArray) -> Array
fn from(value: ChunkedArray) -> Array
Converts to this type from the input type.
Source§impl From<TypedArray<Chunked>> for ChunkedArray
impl From<TypedArray<Chunked>> for ChunkedArray
Source§fn from(typed: TypedArray<Chunked>) -> Self
fn from(typed: TypedArray<Chunked>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<Array> for ChunkedArray
impl FromIterator<Array> for ChunkedArray
Source§impl GetArrayMetadata for ChunkedArray
impl GetArrayMetadata for ChunkedArray
fn metadata(&self) -> Arc<dyn ArrayMetadata>
Source§impl<'a> IntoArray for ChunkedArray
impl<'a> IntoArray for ChunkedArray
fn into_array(self) -> Array
Source§impl IntoCanonical for ChunkedArray
impl IntoCanonical for ChunkedArray
fn into_canonical(self) -> VortexResult<Canonical>
Source§impl PrimitiveArrayTrait for ChunkedArray
impl PrimitiveArrayTrait for ChunkedArray
fn u8_accessor(&self) -> Option<AccessorRef<u8>>
fn u16_accessor(&self) -> Option<AccessorRef<u16>>
fn u32_accessor(&self) -> Option<AccessorRef<u32>>
fn u64_accessor(&self) -> Option<AccessorRef<u64>>
fn i8_accessor(&self) -> Option<AccessorRef<i8>>
fn i16_accessor(&self) -> Option<AccessorRef<i16>>
fn i32_accessor(&self) -> Option<AccessorRef<i32>>
fn i64_accessor(&self) -> Option<AccessorRef<i64>>
fn f16_accessor(&self) -> Option<AccessorRef<f16>>
fn f32_accessor(&self) -> Option<AccessorRef<f32>>
fn f64_accessor(&self) -> Option<AccessorRef<f64>>
fn u8_iter(&self) -> Option<VectorizedArrayIter<u8>>
fn u16_iter(&self) -> Option<VectorizedArrayIter<u16>>
fn u32_iter(&self) -> Option<VectorizedArrayIter<u32>>
fn u64_iter(&self) -> Option<VectorizedArrayIter<u64>>
fn i8_iter(&self) -> Option<VectorizedArrayIter<i8>>
fn i16_iter(&self) -> Option<VectorizedArrayIter<i16>>
fn i32_iter(&self) -> Option<VectorizedArrayIter<i32>>
fn i64_iter(&self) -> Option<VectorizedArrayIter<i64>>
fn f16_iter(&self) -> Option<VectorizedArrayIter<f16>>
fn f32_iter(&self) -> Option<VectorizedArrayIter<f32>>
fn f64_iter(&self) -> Option<VectorizedArrayIter<f64>>
Source§impl ScalarAtFn for ChunkedArray
impl ScalarAtFn for ChunkedArray
Source§impl SliceFn for ChunkedArray
impl SliceFn for ChunkedArray
Source§impl StructArrayTrait for ChunkedArray
impl StructArrayTrait for ChunkedArray
Source§impl SubtractScalarFn for ChunkedArray
impl SubtractScalarFn for ChunkedArray
fn subtract_scalar(&self, to_subtract: &Scalar) -> VortexResult<Array>
Source§impl TakeFn for ChunkedArray
impl TakeFn for ChunkedArray
Source§impl TryFrom<&Array> for ChunkedArray
impl TryFrom<&Array> for ChunkedArray
Source§impl TryFrom<Array> for ChunkedArray
impl TryFrom<Array> for ChunkedArray
impl BinaryArrayTrait for ChunkedArray
impl ListArrayTrait for ChunkedArray
impl NullArrayTrait for ChunkedArray
impl Utf8ArrayTrait for ChunkedArray
Auto Trait Implementations§
impl !Freeze for ChunkedArray
impl !RefUnwindSafe for ChunkedArray
impl Send for ChunkedArray
impl Sync for ChunkedArray
impl Unpin for ChunkedArray
impl !UnwindSafe for ChunkedArray
Blanket Implementations§
Source§impl<T> ArrayEncodingRef for T
impl<T> ArrayEncodingRef for T
fn encoding(&self) -> &'static dyn ArrayEncoding
Source§impl<T> ArrayStatistics for T
impl<T> ArrayStatistics for T
fn statistics(&self) -> &dyn Statistics
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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_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>
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 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>
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