pub struct ZigZagEncoding;Expand description
The array encoding
Trait Implementations§
Source§impl ArrayEncodingExt for ZigZagEncoding
impl ArrayEncodingExt for ZigZagEncoding
Source§impl ComputeVTable for ZigZagEncoding
impl ComputeVTable for ZigZagEncoding
Source§fn scalar_at_fn(&self) -> Option<&dyn ScalarAtFn<ArrayData>>
fn scalar_at_fn(&self) -> Option<&dyn ScalarAtFn<ArrayData>>
Single item indexing on Vortex arrays. Read more
Source§fn slice_fn(&self) -> Option<&dyn SliceFn<ArrayData>>
fn slice_fn(&self) -> Option<&dyn SliceFn<ArrayData>>
Perform zero-copy slicing of an array. Read more
Source§fn binary_boolean_fn(
&self,
_lhs: &ArrayData,
_rhs: &ArrayData,
) -> Option<&dyn BinaryBooleanFn<ArrayData>>
fn binary_boolean_fn( &self, _lhs: &ArrayData, _rhs: &ArrayData, ) -> Option<&dyn BinaryBooleanFn<ArrayData>>
Implementation of binary boolean logic operations. Read more
Source§fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>
fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>
Implemented for arrays that can be casted to different types. Read more
Source§fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>
fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>
Binary operator implementation for arrays against other arrays. Read more
Source§fn fill_forward_fn(&self) -> Option<&dyn FillForwardFn<ArrayData>>
fn fill_forward_fn(&self) -> Option<&dyn FillForwardFn<ArrayData>>
Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
Source§fn filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>
fn filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>
Filter an array with a given mask. Read more
Source§fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>
fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>
Perform a search over an ordered array. Read more
Source§fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>
fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>
Broadcast subtraction of scalar from Vortex array. Read more
Source§impl Debug for ZigZagEncoding
impl Debug for ZigZagEncoding
Source§impl Encoding for ZigZagEncoding
impl Encoding for ZigZagEncoding
type Array = ZigZagArray
type Metadata = ZigZagMetadata
Source§impl EncodingVTable for ZigZagEncoding
impl EncodingVTable for ZigZagEncoding
fn id(&self) -> EncodingId
fn as_any(&self) -> &dyn Any
Source§fn with_dyn(
&self,
array: &ArrayData,
f: &mut dyn for<'b> FnMut(&'b (dyn ArrayTrait + 'b)) -> VortexResult<()>,
) -> VortexResult<()>
fn with_dyn( &self, array: &ArrayData, f: &mut dyn for<'b> FnMut(&'b (dyn ArrayTrait + 'b)) -> VortexResult<()>, ) -> VortexResult<()>
Unwrap the provided array into an implementation of ArrayTrait
Source§impl ScalarAtFn<ZigZagArray> for ZigZagEncoding
impl ScalarAtFn<ZigZagArray> for ZigZagEncoding
fn scalar_at(&self, array: &ZigZagArray, index: usize) -> VortexResult<Scalar>
Source§impl SliceFn<ZigZagArray> for ZigZagEncoding
impl SliceFn<ZigZagArray> for ZigZagEncoding
Source§fn slice(
&self,
array: &ZigZagArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &ZigZagArray, 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<ZigZagArray> for ZigZagEncoding
impl StatisticsVTable<ZigZagArray> for ZigZagEncoding
Source§fn compute_statistics(
&self,
array: &ZigZagArray,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &ZigZagArray, stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl ValidityVTable<ZigZagArray> for ZigZagEncoding
impl ValidityVTable<ZigZagArray> for ZigZagEncoding
fn is_valid(&self, array: &ZigZagArray, index: usize) -> bool
fn logical_validity(&self, array: &ZigZagArray) -> LogicalValidity
Source§impl VisitorVTable<ZigZagArray> for ZigZagEncoding
impl VisitorVTable<ZigZagArray> for ZigZagEncoding
fn accept( &self, array: &ZigZagArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
Auto Trait Implementations§
impl Freeze for ZigZagEncoding
impl RefUnwindSafe for ZigZagEncoding
impl Send for ZigZagEncoding
impl Sync for ZigZagEncoding
impl Unpin for ZigZagEncoding
impl UnwindSafe for ZigZagEncoding
Blanket Implementations§
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> 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