pub struct SparseEncoding;
Expand description
The array encoding
Trait Implementations§
Source§impl ArrayEncodingExt for SparseEncoding
impl ArrayEncodingExt for SparseEncoding
Source§impl ComputeVTable for SparseEncoding
impl ComputeVTable for SparseEncoding
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 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 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 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 take_fn(&self) -> Option<&dyn TakeFn<ArrayData>>
fn take_fn(&self) -> Option<&dyn TakeFn<ArrayData>>
Take a set of indices from an array. This often forces allocations and decoding of
the receiver. 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 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 SparseEncoding
impl Debug for SparseEncoding
Source§impl Encoding for SparseEncoding
impl Encoding for SparseEncoding
type Array = SparseArray
type Metadata = SparseMetadata
Source§impl EncodingVTable for SparseEncoding
impl EncodingVTable for SparseEncoding
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 FilterFn<SparseArray> for SparseEncoding
impl FilterFn<SparseArray> for SparseEncoding
Source§fn filter(
&self,
array: &SparseArray,
mask: FilterMask,
) -> VortexResult<ArrayData>
fn filter( &self, array: &SparseArray, mask: FilterMask, ) -> VortexResult<ArrayData>
Filter an array by the provided predicate.
Source§impl ScalarAtFn<SparseArray> for SparseEncoding
impl ScalarAtFn<SparseArray> for SparseEncoding
fn scalar_at(&self, array: &SparseArray, index: usize) -> VortexResult<Scalar>
Source§impl SearchSortedFn<SparseArray> for SparseEncoding
impl SearchSortedFn<SparseArray> for SparseEncoding
fn search_sorted( &self, array: &SparseArray, value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>
fn search_sorted_usize( &self, array: &Array, value: usize, side: SearchSortedSide, ) -> VortexResult<SearchResult>
Source§fn search_sorted_many(
&self,
array: &Array,
values: &[Scalar],
side: SearchSortedSide,
) -> VortexResult<Vec<SearchResult>>
fn search_sorted_many( &self, array: &Array, values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>
Bulk search for many values.
fn search_sorted_usize_many( &self, array: &Array, values: &[usize], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>
Source§impl SliceFn<SparseArray> for SparseEncoding
impl SliceFn<SparseArray> for SparseEncoding
Source§fn slice(
&self,
array: &SparseArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &SparseArray, 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<SparseArray> for SparseEncoding
impl StatisticsVTable<SparseArray> for SparseEncoding
Source§fn compute_statistics(
&self,
array: &SparseArray,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &SparseArray, stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl TakeFn<SparseArray> for SparseEncoding
impl TakeFn<SparseArray> for SparseEncoding
fn take( &self, array: &SparseArray, indices: &ArrayData, options: TakeOptions, ) -> VortexResult<ArrayData>
Source§impl ValidityVTable<SparseArray> for SparseEncoding
impl ValidityVTable<SparseArray> for SparseEncoding
fn is_valid(&self, array: &SparseArray, index: usize) -> bool
fn logical_validity(&self, array: &SparseArray) -> LogicalValidity
Source§impl VisitorVTable<SparseArray> for SparseEncoding
impl VisitorVTable<SparseArray> for SparseEncoding
fn accept( &self, array: &SparseArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
Auto Trait Implementations§
impl Freeze for SparseEncoding
impl RefUnwindSafe for SparseEncoding
impl Send for SparseEncoding
impl Sync for SparseEncoding
impl Unpin for SparseEncoding
impl UnwindSafe for SparseEncoding
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