pub struct RunEndBoolEncoding;
Expand description
The array encoding
Trait Implementations§
Source§impl ComputeVTable for RunEndBoolEncoding
impl ComputeVTable for RunEndBoolEncoding
Source§fn invert_fn(&self) -> Option<&dyn InvertFn<ArrayData>>
fn invert_fn(&self) -> Option<&dyn InvertFn<ArrayData>>
Invert a boolean array. Converts true -> false, false -> true, null -> null. 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 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 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 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§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 like_fn(&self) -> Option<&dyn LikeFn<ArrayData>>
fn like_fn(&self) -> Option<&dyn LikeFn<ArrayData>>
Perform a SQL LIKE operation on two 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 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 RunEndBoolEncoding
impl Debug for RunEndBoolEncoding
Source§impl Encoding for RunEndBoolEncoding
impl Encoding for RunEndBoolEncoding
const ID: EncodingId
type Array = RunEndBoolArray
type Metadata = RunEndBoolMetadata
Source§impl EncodingVTable for RunEndBoolEncoding
impl EncodingVTable for RunEndBoolEncoding
Source§impl InvertFn<RunEndBoolArray> for RunEndBoolEncoding
impl InvertFn<RunEndBoolArray> for RunEndBoolEncoding
Source§fn invert(&self, array: &RunEndBoolArray) -> VortexResult<ArrayData>
fn invert(&self, array: &RunEndBoolArray) -> VortexResult<ArrayData>
Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
Source§impl ScalarAtFn<RunEndBoolArray> for RunEndBoolEncoding
impl ScalarAtFn<RunEndBoolArray> for RunEndBoolEncoding
fn scalar_at( &self, array: &RunEndBoolArray, index: usize, ) -> VortexResult<Scalar>
Source§impl SliceFn<RunEndBoolArray> for RunEndBoolEncoding
impl SliceFn<RunEndBoolArray> for RunEndBoolEncoding
Source§fn slice(
&self,
array: &RunEndBoolArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &RunEndBoolArray, 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<RunEndBoolArray> for RunEndBoolEncoding
impl StatisticsVTable<RunEndBoolArray> for RunEndBoolEncoding
Source§fn compute_statistics(
&self,
array: &RunEndBoolArray,
stat: Stat,
) -> VortexResult<StatsSet>
fn compute_statistics( &self, array: &RunEndBoolArray, stat: Stat, ) -> VortexResult<StatsSet>
Compute the requested statistic. Can return additional stats.
Source§impl TakeFn<RunEndBoolArray> for RunEndBoolEncoding
impl TakeFn<RunEndBoolArray> for RunEndBoolEncoding
Source§fn take(
&self,
array: &RunEndBoolArray,
indices: &ArrayData,
) -> VortexResult<ArrayData>
fn take( &self, array: &RunEndBoolArray, 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 ValidityVTable<RunEndBoolArray> for RunEndBoolEncoding
impl ValidityVTable<RunEndBoolArray> for RunEndBoolEncoding
fn is_valid(&self, array: &RunEndBoolArray, index: usize) -> bool
fn logical_validity(&self, array: &RunEndBoolArray) -> LogicalValidity
Source§impl VariantsVTable<RunEndBoolArray> for RunEndBoolEncoding
impl VariantsVTable<RunEndBoolArray> for RunEndBoolEncoding
fn as_bool_array<'a>( &self, array: &'a RunEndBoolArray, ) -> Option<&'a dyn BoolArrayTrait>
fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>
fn as_primitive_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn PrimitiveArrayTrait>
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<RunEndBoolArray> for RunEndBoolEncoding
impl VisitorVTable<RunEndBoolArray> for RunEndBoolEncoding
fn accept( &self, array: &RunEndBoolArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
Auto Trait Implementations§
impl Freeze for RunEndBoolEncoding
impl RefUnwindSafe for RunEndBoolEncoding
impl Send for RunEndBoolEncoding
impl Sync for RunEndBoolEncoding
impl Unpin for RunEndBoolEncoding
impl UnwindSafe for RunEndBoolEncoding
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