pub struct ZigZagArray(/* private fields */);Implementations§
Source§impl ZigZagArray
impl ZigZagArray
Source§impl ZigZagArray
impl ZigZagArray
pub fn try_new(encoded: ArrayData) -> VortexResult<Self>
pub fn encode(array: &ArrayData) -> VortexResult<ZigZagArray>
pub fn encoded(&self) -> ArrayData
Trait Implementations§
Source§impl AsRef<ArrayData> for ZigZagArray
impl AsRef<ArrayData> for ZigZagArray
Source§impl Clone for ZigZagArray
impl Clone for ZigZagArray
Source§fn clone(&self) -> ZigZagArray
fn clone(&self) -> ZigZagArray
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 Debug for ZigZagArray
impl Debug for ZigZagArray
Source§impl FilterFn<ZigZagArray> for ZigZagEncoding
impl FilterFn<ZigZagArray> for ZigZagEncoding
Source§fn filter(
&self,
array: &ZigZagArray,
mask: &FilterMask,
) -> VortexResult<ArrayData>
fn filter( &self, array: &ZigZagArray, mask: &FilterMask, ) -> VortexResult<ArrayData>
Filter an array by the provided predicate.
Source§impl IntoArrayData for ZigZagArray
impl IntoArrayData for ZigZagArray
fn into_array(self) -> ArrayData
Source§impl IntoCanonical for ZigZagArray
impl IntoCanonical for ZigZagArray
fn into_canonical(self) -> VortexResult<Canonical>
fn into_arrow(self) -> Result<Arc<dyn Array>, VortexError>where
Self: Sized,
fn into_arrow_with_data_type(
self,
data_type: &DataType,
) -> Result<Arc<dyn Array>, VortexError>where
Self: Sized,
Source§impl PrimitiveArrayTrait for ZigZagArray
impl PrimitiveArrayTrait for ZigZagArray
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 TakeFn<ZigZagArray> for ZigZagEncoding
impl TakeFn<ZigZagArray> for ZigZagEncoding
Source§fn take(
&self,
array: &ZigZagArray,
indices: &ArrayData,
) -> VortexResult<ArrayData>
fn take( &self, array: &ZigZagArray, indices: &ArrayData, ) -> VortexResult<ArrayData>
Source§unsafe fn take_unchecked(
&self,
array: &Array,
indices: &ArrayData,
) -> Result<ArrayData, VortexError>
unsafe fn take_unchecked( &self, array: &Array, indices: &ArrayData, ) -> Result<ArrayData, VortexError>
Source§impl<'a> TryFrom<&'a ArrayData> for &'a ZigZagArray
impl<'a> TryFrom<&'a ArrayData> for &'a ZigZagArray
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 ZigZagArray
impl TryFrom<ArrayData> for ZigZagArray
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 ValidateVTable<ZigZagArray> for ZigZagEncoding
impl ValidateVTable<ZigZagArray> for ZigZagEncoding
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 VariantsVTable<ZigZagArray> for ZigZagEncoding
impl VariantsVTable<ZigZagArray> for ZigZagEncoding
fn as_primitive_array<'a>( &self, array: &'a ZigZagArray, ) -> Option<&'a dyn PrimitiveArrayTrait>
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_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 VisitorVTable<ZigZagArray> for ZigZagEncoding
impl VisitorVTable<ZigZagArray> for ZigZagEncoding
fn accept( &self, array: &ZigZagArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl ArrayTrait for ZigZagArray
Auto Trait Implementations§
impl !Freeze for ZigZagArray
impl !RefUnwindSafe for ZigZagArray
impl Send for ZigZagArray
impl Sync for ZigZagArray
impl Unpin for ZigZagArray
impl !UnwindSafe for ZigZagArray
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§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