pub struct ChunkedArray(/* private fields */);
Implementations§
Source§impl ChunkedArray
impl ChunkedArray
pub fn try_new(chunks: Vec<ArrayData>, dtype: DType) -> VortexResult<Self>
pub fn chunk(&self, idx: usize) -> VortexResult<ArrayData>
pub fn nchunks(&self) -> usize
pub fn chunk_offsets(&self) -> ArrayData
pub fn chunks(&self) -> impl Iterator<Item = ArrayData> + '_
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 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<ArrayData> for ChunkedArray
impl AsRef<ArrayData> for ChunkedArray
Source§impl BoolArrayTrait for ChunkedArray
impl BoolArrayTrait for ChunkedArray
Source§impl CastFn<ChunkedArray> for ChunkedEncoding
impl CastFn<ChunkedArray> for ChunkedEncoding
fn cast(&self, array: &ChunkedArray, dtype: &DType) -> VortexResult<ArrayData>
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<ChunkedArray> for ChunkedEncoding
impl CompareFn<ChunkedArray> for ChunkedEncoding
Source§fn compare(
&self,
lhs: &ChunkedArray,
rhs: &ArrayData,
operator: Operator,
) -> VortexResult<Option<ArrayData>>
fn compare( &self, lhs: &ChunkedArray, 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 ChunkedArray
impl Debug for ChunkedArray
Source§impl ExtensionArrayTrait for ChunkedArray
impl ExtensionArrayTrait for ChunkedArray
Source§impl FilterFn<ChunkedArray> for ChunkedEncoding
impl FilterFn<ChunkedArray> for ChunkedEncoding
Source§fn filter(
&self,
array: &ChunkedArray,
mask: FilterMask,
) -> VortexResult<ArrayData>
fn filter( &self, array: &ChunkedArray, mask: FilterMask, ) -> VortexResult<ArrayData>
Filter an array by the provided predicate.
Source§impl FromIterator<ArrayData> for ChunkedArray
impl FromIterator<ArrayData> for ChunkedArray
Source§impl IntoArrayData for ChunkedArray
impl IntoArrayData for ChunkedArray
fn into_array(self) -> ArrayData
Source§impl IntoCanonical for ChunkedArray
impl IntoCanonical for ChunkedArray
fn into_canonical(self) -> VortexResult<Canonical>
Source§impl PrimitiveArrayTrait for ChunkedArray
impl PrimitiveArrayTrait for ChunkedArray
Source§impl ScalarAtFn<ChunkedArray> for ChunkedEncoding
impl ScalarAtFn<ChunkedArray> for ChunkedEncoding
fn scalar_at(&self, array: &ChunkedArray, index: usize) -> VortexResult<Scalar>
Source§impl SliceFn<ChunkedArray> for ChunkedEncoding
impl SliceFn<ChunkedArray> for ChunkedEncoding
Source§fn slice(
&self,
array: &ChunkedArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &ChunkedArray, 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 StatisticsVTable<ChunkedArray> for ChunkedEncoding
impl StatisticsVTable<ChunkedArray> for ChunkedEncoding
Source§fn compute_statistics(
&self,
array: &ChunkedArray,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &ChunkedArray, stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl StructArrayTrait for ChunkedArray
impl StructArrayTrait for ChunkedArray
Source§impl SubtractScalarFn<ChunkedArray> for ChunkedEncoding
impl SubtractScalarFn<ChunkedArray> for ChunkedEncoding
fn subtract_scalar( &self, array: &ChunkedArray, to_subtract: &Scalar, ) -> VortexResult<ArrayData>
Source§impl TakeFn<ChunkedArray> for ChunkedEncoding
impl TakeFn<ChunkedArray> for ChunkedEncoding
fn take( &self, array: &ChunkedArray, indices: &ArrayData, options: TakeOptions, ) -> VortexResult<ArrayData>
Source§impl<'a> TryFrom<&'a ArrayData> for &'a ChunkedArray
impl<'a> TryFrom<&'a ArrayData> for &'a ChunkedArray
Source§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
Source§fn try_from(data: &'a ArrayData) -> VortexResult<Self>
fn try_from(data: &'a ArrayData) -> VortexResult<Self>
Performs the conversion.
Source§impl TryFrom<ArrayData> for ChunkedArray
impl TryFrom<ArrayData> for ChunkedArray
Source§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
Source§fn try_from(data: ArrayData) -> VortexResult<Self>
fn try_from(data: ArrayData) -> VortexResult<Self>
Performs the conversion.
Source§impl ValidityVTable<ChunkedArray> for ChunkedEncoding
impl ValidityVTable<ChunkedArray> for ChunkedEncoding
fn is_valid(&self, array: &ChunkedArray, index: usize) -> bool
fn logical_validity(&self, array: &ChunkedArray) -> LogicalValidity
Source§impl VisitorVTable<ChunkedArray> for ChunkedEncoding
impl VisitorVTable<ChunkedArray> for ChunkedEncoding
fn accept( &self, array: &ChunkedArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl ArrayTrait 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 EncodingVTable
Source§impl<A> ArrayNBytes for A
impl<A> ArrayNBytes for A
Source§impl<T> ArrayStatistics for T
impl<T> ArrayStatistics for T
fn statistics(&self) -> &dyn Statistics
fn inherit_statistics(&self, parent: &dyn Statistics)
Source§impl<A> ArrayValidity for A
impl<A> ArrayValidity for A
fn is_valid(&self, index: usize) -> bool
fn logical_validity(&self) -> LogicalValidity
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§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