pub struct RunEndArray { /* private fields */ }Implementations§
Source§impl RunEndArray
impl RunEndArray
pub fn try_new(ends: ArrayRef, values: ArrayRef) -> VortexResult<Self>
Sourcepub fn find_physical_index(&self, index: usize) -> VortexResult<usize>
pub fn find_physical_index(&self, index: usize) -> VortexResult<usize>
Convert the given logical index to an index into the values array
Sourcepub fn encode(array: ArrayRef) -> VortexResult<Self>
pub fn encode(array: ArrayRef) -> VortexResult<Self>
Run the array through run-end encoding.
Sourcepub fn offset(&self) -> usize
pub fn offset(&self) -> usize
The offset that the ends is relative to.
This is generally zero for a “new” array, and non-zero after a slicing operation.
Trait Implementations§
Source§impl AsRef<dyn Array> for RunEndArray
impl AsRef<dyn Array> for RunEndArray
Source§impl Clone for RunEndArray
impl Clone for RunEndArray
Source§fn clone(&self) -> RunEndArray
fn clone(&self) -> RunEndArray
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunEndArray
impl Debug for RunEndArray
Source§impl Deref for RunEndArray
impl Deref for RunEndArray
Source§impl IntoArray for RunEndArray
impl IntoArray for RunEndArray
fn into_array(self) -> ArrayRef
Auto Trait Implementations§
impl Freeze for RunEndArray
impl !RefUnwindSafe for RunEndArray
impl Send for RunEndArray
impl Sync for RunEndArray
impl Unpin for RunEndArray
impl !UnwindSafe for RunEndArray
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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