Struct vortex_array::array::PrimitiveEncoding
source · pub struct PrimitiveEncoding;
Expand description
The array encoding
Trait Implementations§
source§impl CastFn<PrimitiveArray> for PrimitiveEncoding
impl CastFn<PrimitiveArray> for PrimitiveEncoding
fn cast(&self, array: &PrimitiveArray, dtype: &DType) -> VortexResult<ArrayData>
source§impl ComputeVTable for PrimitiveEncoding
impl ComputeVTable for PrimitiveEncoding
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.
Implemented for arrays that can be casted to different types. 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 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 search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<ArrayData>>
fn search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<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) -> Option<&dyn BinaryBooleanFn<ArrayData>>
fn binary_boolean_fn(&self) -> Option<&dyn BinaryBooleanFn<ArrayData>>
Implementation of binary boolean logic operations. Read more
source§fn binary_numeric_fn(&self) -> Option<&dyn BinaryNumericFn<ArrayData>>
fn binary_numeric_fn(&self) -> Option<&dyn BinaryNumericFn<ArrayData>>
Implementation of binary numeric operations. 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_null_fn(&self) -> Option<&dyn FillNullFn<ArrayData>>
fn fill_null_fn(&self) -> Option<&dyn FillNullFn<ArrayData>>
Fill null values with given desired value. Resulting array is NonNullable Read more
source§impl Debug for PrimitiveEncoding
impl Debug for PrimitiveEncoding
source§impl Encoding for PrimitiveEncoding
impl Encoding for PrimitiveEncoding
const ID: EncodingId = _
type Array = PrimitiveArray
type Metadata = PrimitiveMetadata
source§impl EncodingVTable for PrimitiveEncoding
impl EncodingVTable for PrimitiveEncoding
source§impl FillForwardFn<PrimitiveArray> for PrimitiveEncoding
impl FillForwardFn<PrimitiveArray> for PrimitiveEncoding
fn fill_forward(&self, array: &PrimitiveArray) -> VortexResult<ArrayData>
source§impl FilterFn<PrimitiveArray> for PrimitiveEncoding
impl FilterFn<PrimitiveArray> for PrimitiveEncoding
source§fn filter(
&self,
array: &PrimitiveArray,
mask: FilterMask,
) -> VortexResult<ArrayData>
fn filter( &self, array: &PrimitiveArray, mask: FilterMask, ) -> VortexResult<ArrayData>
Filter an array by the provided predicate.
source§impl ScalarAtFn<PrimitiveArray> for PrimitiveEncoding
impl ScalarAtFn<PrimitiveArray> for PrimitiveEncoding
fn scalar_at( &self, array: &PrimitiveArray, index: usize, ) -> VortexResult<Scalar>
source§impl SearchSortedFn<PrimitiveArray> for PrimitiveEncoding
impl SearchSortedFn<PrimitiveArray> for PrimitiveEncoding
fn search_sorted( &self, array: &PrimitiveArray, value: &Scalar, 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.
source§impl SearchSortedUsizeFn<PrimitiveArray> for PrimitiveEncoding
impl SearchSortedUsizeFn<PrimitiveArray> for PrimitiveEncoding
fn search_sorted_usize( &self, array: &PrimitiveArray, value: usize, side: SearchSortedSide, ) -> VortexResult<SearchResult>
fn search_sorted_usize_many( &self, array: &Array, values: &[usize], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>
source§impl SliceFn<PrimitiveArray> for PrimitiveEncoding
impl SliceFn<PrimitiveArray> for PrimitiveEncoding
source§fn slice(
&self,
array: &PrimitiveArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &PrimitiveArray, 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<T: PStatsType> StatisticsVTable<[T]> for PrimitiveEncoding
impl<T: PStatsType> StatisticsVTable<[T]> for PrimitiveEncoding
source§impl StatisticsVTable<PrimitiveArray> for PrimitiveEncoding
impl StatisticsVTable<PrimitiveArray> for PrimitiveEncoding
source§fn compute_statistics(
&self,
array: &PrimitiveArray,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &PrimitiveArray, stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
source§impl TakeFn<PrimitiveArray> for PrimitiveEncoding
impl TakeFn<PrimitiveArray> for PrimitiveEncoding
source§unsafe fn take_unchecked(
&self,
array: &PrimitiveArray,
indices: &ArrayData,
) -> VortexResult<ArrayData>
unsafe fn take_unchecked( &self, array: &PrimitiveArray, indices: &ArrayData, ) -> VortexResult<ArrayData>
source§impl ValidityVTable<PrimitiveArray> for PrimitiveEncoding
impl ValidityVTable<PrimitiveArray> for PrimitiveEncoding
fn is_valid(&self, array: &PrimitiveArray, index: usize) -> bool
fn logical_validity(&self, array: &PrimitiveArray) -> LogicalValidity
source§impl VariantsVTable<PrimitiveArray> for PrimitiveEncoding
impl VariantsVTable<PrimitiveArray> for PrimitiveEncoding
fn as_primitive_array<'a>( &self, array: &'a PrimitiveArray, ) -> 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<PrimitiveArray> for PrimitiveEncoding
impl VisitorVTable<PrimitiveArray> for PrimitiveEncoding
fn accept( &self, array: &PrimitiveArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
Auto Trait Implementations§
impl Freeze for PrimitiveEncoding
impl RefUnwindSafe for PrimitiveEncoding
impl Send for PrimitiveEncoding
impl Sync for PrimitiveEncoding
impl Unpin for PrimitiveEncoding
impl UnwindSafe for PrimitiveEncoding
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
§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> 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