Struct vortex_array::array::ChunkedArray
source · pub struct ChunkedArray(/* private fields */);
Implementations§
source§impl ChunkedArray
impl ChunkedArray
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 AsRef<ArrayData> for ChunkedArray
impl AsRef<ArrayData> for ChunkedArray
source§impl BinaryBooleanFn<ChunkedArray> for ChunkedEncoding
impl BinaryBooleanFn<ChunkedArray> for ChunkedEncoding
fn binary_boolean( &self, lhs: &ChunkedArray, rhs: &ArrayData, op: BinaryOperator, ) -> VortexResult<Option<ArrayData>>
source§impl BinaryNumericFn<ChunkedArray> for ChunkedEncoding
impl BinaryNumericFn<ChunkedArray> for ChunkedEncoding
fn binary_numeric( &self, array: &ChunkedArray, rhs: &ArrayData, op: BinaryNumericOperator, ) -> VortexResult<Option<ArrayData>>
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§impl Debug for ChunkedArray
impl Debug for ChunkedArray
source§impl ExtensionArrayTrait for ChunkedArray
impl ExtensionArrayTrait for ChunkedArray
source§impl FillNullFn<ChunkedArray> for ChunkedEncoding
impl FillNullFn<ChunkedArray> for ChunkedEncoding
fn fill_null( &self, array: &ChunkedArray, fill_value: Scalar, ) -> VortexResult<ArrayData>
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>
fn into_arrow(self) -> VortexResult<ArrayRef>where
Self: Sized,
source§impl InvertFn<ChunkedArray> for ChunkedEncoding
impl InvertFn<ChunkedArray> for ChunkedEncoding
source§fn invert(&self, array: &ChunkedArray) -> VortexResult<ArrayData>
fn invert(&self, array: &ChunkedArray) -> VortexResult<ArrayData>
Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
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 TakeFn<ChunkedArray> for ChunkedEncoding
impl TakeFn<ChunkedArray> for ChunkedEncoding
source§impl<'a> TryFrom<&'a ArrayData> for &'a ChunkedArray
impl<'a> TryFrom<&'a ArrayData> for &'a ChunkedArray
source§impl TryFrom<ArrayData> for ChunkedArray
impl TryFrom<ArrayData> for ChunkedArray
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 VariantsVTable<ChunkedArray> for ChunkedEncoding
impl VariantsVTable<ChunkedArray> for ChunkedEncoding
Chunked arrays support all DTypes
fn as_null_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn NullArrayTrait>
fn as_bool_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn BoolArrayTrait>
fn as_primitive_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn PrimitiveArrayTrait>
fn as_utf8_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn Utf8ArrayTrait>
fn as_binary_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn BinaryArrayTrait>
fn as_struct_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn StructArrayTrait>
fn as_list_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn ListArrayTrait>
fn as_extension_array<'a>( &self, array: &'a ChunkedArray, ) -> Option<&'a dyn ExtensionArrayTrait>
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 BoolArrayTrait 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
source§fn is_valid(&self, index: usize) -> bool
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
fn logical_validity(&self) -> LogicalValidity
Return the logical validity of the array.
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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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