pub struct SparseVTable;Trait Implementations§
Source§impl ArrayVTable<SparseVTable> for SparseVTable
impl ArrayVTable<SparseVTable> for SparseVTable
fn len(array: &SparseArray) -> usize
fn dtype(array: &SparseArray) -> &DType
fn stats(array: &SparseArray) -> StatsSetRef<'_>
Source§impl CanonicalVTable<SparseVTable> for SparseVTable
impl CanonicalVTable<SparseVTable> for SparseVTable
Source§fn canonicalize(array: &SparseArray) -> VortexResult<Canonical>
fn canonicalize(array: &SparseArray) -> VortexResult<Canonical>
Returns the canonical representation of the array. Read more
Source§fn append_to_builder(
array: &<V as VTable>::Array,
builder: &mut dyn ArrayBuilder,
) -> Result<(), VortexError>
fn append_to_builder( array: &<V as VTable>::Array, builder: &mut dyn ArrayBuilder, ) -> Result<(), VortexError>
Writes the array into a canonical builder. Read more
Source§impl Debug for SparseVTable
impl Debug for SparseVTable
Source§impl EncodeVTable<SparseVTable> for SparseVTable
impl EncodeVTable<SparseVTable> for SparseVTable
Source§fn encode(
_encoding: &SparseEncoding,
input: &Canonical,
like: Option<&SparseArray>,
) -> VortexResult<Option<SparseArray>>
fn encode( _encoding: &SparseEncoding, input: &Canonical, like: Option<&SparseArray>, ) -> VortexResult<Option<SparseArray>>
Try to encode a canonical array into this encoding. Read more
Source§impl FilterKernel for SparseVTable
impl FilterKernel for SparseVTable
Source§fn filter(&self, array: &SparseArray, mask: &Mask) -> VortexResult<ArrayRef>
fn filter(&self, array: &SparseArray, mask: &Mask) -> VortexResult<ArrayRef>
Filter an array by the provided predicate. Read more
Source§impl InvertKernel for SparseVTable
impl InvertKernel for SparseVTable
Source§fn invert(&self, array: &SparseArray) -> VortexResult<ArrayRef>
fn invert(&self, array: &SparseArray) -> VortexResult<ArrayRef>
Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
Source§impl NumericKernel for SparseVTable
impl NumericKernel for SparseVTable
fn numeric( &self, array: &SparseArray, rhs: &dyn Array, op: NumericOperator, ) -> VortexResult<Option<ArrayRef>>
Source§impl OperationsVTable<SparseVTable> for SparseVTable
impl OperationsVTable<SparseVTable> for SparseVTable
Source§fn slice(
array: &SparseArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayRef>
fn slice( array: &SparseArray, start: usize, stop: usize, ) -> VortexResult<ArrayRef>
Perform a constant-time slice of the array. Read more
Source§fn scalar_at(array: &SparseArray, index: usize) -> VortexResult<Scalar>
fn scalar_at(array: &SparseArray, index: usize) -> VortexResult<Scalar>
Fetch the scalar at the given index. Read more
Source§impl SerdeVTable<SparseVTable> for SparseVTable
impl SerdeVTable<SparseVTable> for SparseVTable
type Metadata = ProstMetadata<SparseMetadata>
Source§fn metadata(array: &SparseArray) -> VortexResult<Option<Self::Metadata>>
fn metadata(array: &SparseArray) -> VortexResult<Option<Self::Metadata>>
Exports the metadata for the array. Read more
Source§fn build(
_encoding: &SparseEncoding,
dtype: &DType,
len: usize,
metadata: &<Self::Metadata as DeserializeMetadata>::Output,
buffers: &[ByteBuffer],
children: &dyn ArrayChildren,
) -> VortexResult<SparseArray>
fn build( _encoding: &SparseEncoding, dtype: &DType, len: usize, metadata: &<Self::Metadata as DeserializeMetadata>::Output, buffers: &[ByteBuffer], children: &dyn ArrayChildren, ) -> VortexResult<SparseArray>
Build an array from its given parts.
Source§impl TakeKernel for SparseVTable
impl TakeKernel for SparseVTable
Source§fn take(
&self,
array: &SparseArray,
take_indices: &dyn Array,
) -> VortexResult<ArrayRef>
fn take( &self, array: &SparseArray, take_indices: &dyn Array, ) -> VortexResult<ArrayRef>
Source§impl VTable for SparseVTable
impl VTable for SparseVTable
type Array = SparseArray
type Encoding = SparseEncoding
type ArrayVTable = SparseVTable
type CanonicalVTable = SparseVTable
type OperationsVTable = SparseVTable
type ValidityVTable = SparseVTable
type VisitorVTable = SparseVTable
Source§type ComputeVTable = NotSupported
type ComputeVTable = NotSupported
Optionally enable implementing dynamic compute dispatch for this encoding.
Can be disabled by assigning to the
NotSupported type.Source§type EncodeVTable = SparseVTable
type EncodeVTable = SparseVTable
Optionally enable the
EncodeVTable for this encoding. This allows it to partake in
compression.
Can be disabled by assigning to the NotSupported type.Source§type SerdeVTable = SparseVTable
type SerdeVTable = SparseVTable
Optionally enable serde for this encoding by implementing the
SerdeVTable trait.
Can be disabled by assigning to the NotSupported type.Source§fn id(_encoding: &Self::Encoding) -> EncodingId
fn id(_encoding: &Self::Encoding) -> EncodingId
Returns the ID of the encoding.
Source§fn encoding(_array: &Self::Array) -> EncodingRef
fn encoding(_array: &Self::Array) -> EncodingRef
Returns the encoding for the array.
Source§impl ValidityVTable<SparseVTable> for SparseVTable
impl ValidityVTable<SparseVTable> for SparseVTable
fn is_valid(array: &SparseArray, index: usize) -> VortexResult<bool>
fn all_valid(array: &SparseArray) -> VortexResult<bool>
fn all_invalid(array: &SparseArray) -> VortexResult<bool>
fn validity_mask(array: &SparseArray) -> VortexResult<Mask>
Source§fn valid_count(array: &<V as VTable>::Array) -> Result<usize, VortexError>
fn valid_count(array: &<V as VTable>::Array) -> Result<usize, VortexError>
Returns the number of valid elements in the array. Read more
Source§fn invalid_count(array: &<V as VTable>::Array) -> Result<usize, VortexError>
fn invalid_count(array: &<V as VTable>::Array) -> Result<usize, VortexError>
Returns the number of invalid elements in the array. Read more
Source§impl VisitorVTable<SparseVTable> for SparseVTable
impl VisitorVTable<SparseVTable> for SparseVTable
Source§fn visit_buffers(array: &SparseArray, visitor: &mut dyn ArrayBufferVisitor)
fn visit_buffers(array: &SparseArray, visitor: &mut dyn ArrayBufferVisitor)
Visit the buffers of the array.
Source§fn visit_children(array: &SparseArray, visitor: &mut dyn ArrayChildVisitor)
fn visit_children(array: &SparseArray, visitor: &mut dyn ArrayChildVisitor)
Visit the children of the array.
Auto Trait Implementations§
impl Freeze for SparseVTable
impl RefUnwindSafe for SparseVTable
impl Send for SparseVTable
impl Sync for SparseVTable
impl Unpin for SparseVTable
impl UnwindSafe for SparseVTable
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