pub struct RunEndArray { /* private fields */ }
Implementations§
Source§impl RunEndArray
impl RunEndArray
pub fn try_new( ends: Array, values: Array, validity: Validity, ) -> 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 find_physical_indices(&self, indices: &[u64]) -> VortexResult<Vec<usize>>
pub fn find_physical_indices(&self, indices: &[u64]) -> VortexResult<Vec<usize>>
Convert a batch of logical indices into an index for the values. Expects indices to be adjusted by offset unlike Self::find_physical_index
See: find_physical_index.
Sourcepub fn encode(array: Array) -> VortexResult<Self>
pub fn encode(array: Array) -> VortexResult<Self>
Run the array through run-end encoding.
pub fn validity(&self) -> Validity
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 AcceptArrayVisitor for RunEndArray
impl AcceptArrayVisitor for RunEndArray
fn accept(&self, visitor: &mut dyn ArrayVisitor) -> VortexResult<()>
Source§impl ArrayCompute for RunEndArray
impl ArrayCompute for RunEndArray
Source§fn scalar_at(&self) -> Option<&dyn ScalarAtFn>
fn scalar_at(&self) -> Option<&dyn ScalarAtFn>
Single item indexing on Vortex arrays. Read more
Source§fn take(&self) -> Option<&dyn TakeFn>
fn take(&self) -> Option<&dyn TakeFn>
Take a set of indices from an array. This often forces allocations and decoding of
the receiver. Read more
Source§fn cast(&self) -> Option<&dyn CastFn>
fn cast(&self) -> Option<&dyn CastFn>
Implemented for arrays that can be casted to different types. Read more
Source§fn compare(
&self,
_other: &Array,
_operator: Operator,
) -> Option<Result<Array, VortexError>>
fn compare( &self, _other: &Array, _operator: Operator, ) -> Option<Result<Array, VortexError>>
Binary operator implementation for arrays against other arrays. Read more
Source§fn fill_forward(&self) -> Option<&dyn FillForwardFn>
fn fill_forward(&self) -> Option<&dyn FillForwardFn>
Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
Source§fn filter(&self) -> Option<&dyn FilterFn>
fn filter(&self) -> Option<&dyn FilterFn>
Filtering function on arrays of predicates. Read more
Source§fn subtract_scalar(&self) -> Option<&dyn SubtractScalarFn>
fn subtract_scalar(&self) -> Option<&dyn SubtractScalarFn>
Broadcast subtraction of scalar from Vortex array. Read more
Source§fn search_sorted(&self) -> Option<&dyn SearchSortedFn>
fn search_sorted(&self) -> Option<&dyn SearchSortedFn>
Perform a search over an ordered array. Read more
Source§impl ArrayStatisticsCompute for RunEndArray
impl ArrayStatisticsCompute for RunEndArray
Source§fn compute_statistics(&self, _stat: Stat) -> Result<StatsSet, VortexError>
fn compute_statistics(&self, _stat: Stat) -> Result<StatsSet, VortexError>
Compute the requested statistic. Can return additional stats.
Source§impl ArrayTrait for RunEndArray
impl ArrayTrait for RunEndArray
Source§impl ArrayValidity for RunEndArray
impl ArrayValidity for RunEndArray
fn is_valid(&self, index: usize) -> bool
fn logical_validity(&self) -> LogicalValidity
Source§impl ArrayVariants for RunEndArray
impl ArrayVariants for RunEndArray
fn as_primitive_array(&self) -> Option<&dyn PrimitiveArrayTrait>
fn as_null_array(&self) -> Option<&dyn NullArrayTrait>
fn as_null_array_unchecked(&self) -> &dyn NullArrayTrait
fn as_bool_array(&self) -> Option<&dyn BoolArrayTrait>
fn as_bool_array_unchecked(&self) -> &dyn BoolArrayTrait
fn as_primitive_array_unchecked(&self) -> &dyn PrimitiveArrayTrait
fn as_utf8_array(&self) -> Option<&dyn Utf8ArrayTrait>
fn as_utf8_array_unchecked(&self) -> &dyn Utf8ArrayTrait
fn as_binary_array(&self) -> Option<&dyn BinaryArrayTrait>
fn as_binary_array_unchecked(&self) -> &dyn BinaryArrayTrait
fn as_struct_array(&self) -> Option<&dyn StructArrayTrait>
fn as_struct_array_unchecked(&self) -> &dyn StructArrayTrait
fn as_list_array(&self) -> Option<&dyn ListArrayTrait>
fn as_list_array_unchecked(&self) -> &dyn ListArrayTrait
fn as_extension_array(&self) -> Option<&dyn ExtensionArrayTrait>
fn as_extension_array_unchecked(&self) -> &dyn ExtensionArrayTrait
Source§impl AsRef<Array> for RunEndArray
impl AsRef<Array> for RunEndArray
Source§impl Clone for RunEndArray
impl Clone for RunEndArray
Source§fn clone(&self) -> RunEndArray
fn clone(&self) -> RunEndArray
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RunEndArray
impl Debug for RunEndArray
Source§impl From<RunEndArray> for Array
impl From<RunEndArray> for Array
Source§fn from(value: RunEndArray) -> Array
fn from(value: RunEndArray) -> Array
Converts to this type from the input type.
Source§impl From<TypedArray<RunEnd>> for RunEndArray
impl From<TypedArray<RunEnd>> for RunEndArray
Source§fn from(typed: TypedArray<RunEnd>) -> Self
fn from(typed: TypedArray<RunEnd>) -> Self
Converts to this type from the input type.
Source§impl GetArrayMetadata for RunEndArray
impl GetArrayMetadata for RunEndArray
fn metadata(&self) -> Arc<dyn ArrayMetadata>
Source§impl<'a> IntoArray for RunEndArray
impl<'a> IntoArray for RunEndArray
fn into_array(self) -> Array
Source§impl IntoCanonical for RunEndArray
impl IntoCanonical for RunEndArray
fn into_canonical(self) -> VortexResult<Canonical>
Source§impl PrimitiveArrayTrait for RunEndArray
impl PrimitiveArrayTrait for RunEndArray
fn u8_accessor(&self) -> Option<Arc<dyn Accessor<u8>>>
fn u16_accessor(&self) -> Option<Arc<dyn Accessor<u16>>>
fn u32_accessor(&self) -> Option<Arc<dyn Accessor<u32>>>
fn u64_accessor(&self) -> Option<Arc<dyn Accessor<u64>>>
fn i8_accessor(&self) -> Option<Arc<dyn Accessor<i8>>>
fn i16_accessor(&self) -> Option<Arc<dyn Accessor<i16>>>
fn i32_accessor(&self) -> Option<Arc<dyn Accessor<i32>>>
fn i64_accessor(&self) -> Option<Arc<dyn Accessor<i64>>>
fn f16_accessor(&self) -> Option<Arc<dyn Accessor<f16>>>
fn f32_accessor(&self) -> Option<Arc<dyn Accessor<f32>>>
fn f64_accessor(&self) -> Option<Arc<dyn Accessor<f64>>>
fn u8_iter(&self) -> Option<VectorizedArrayIter<u8>>
fn u16_iter(&self) -> Option<VectorizedArrayIter<u16>>
fn u32_iter(&self) -> Option<VectorizedArrayIter<u32>>
fn u64_iter(&self) -> Option<VectorizedArrayIter<u64>>
fn i8_iter(&self) -> Option<VectorizedArrayIter<i8>>
fn i16_iter(&self) -> Option<VectorizedArrayIter<i16>>
fn i32_iter(&self) -> Option<VectorizedArrayIter<i32>>
fn i64_iter(&self) -> Option<VectorizedArrayIter<i64>>
fn f16_iter(&self) -> Option<VectorizedArrayIter<f16>>
fn f32_iter(&self) -> Option<VectorizedArrayIter<f32>>
fn f64_iter(&self) -> Option<VectorizedArrayIter<f64>>
Source§impl ScalarAtFn for RunEndArray
impl ScalarAtFn for RunEndArray
Source§impl SliceFn for RunEndArray
impl SliceFn for RunEndArray
Source§impl TakeFn for RunEndArray
impl TakeFn for RunEndArray
Source§impl TryFrom<&Array> for RunEndArray
impl TryFrom<&Array> for RunEndArray
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> ArrayEncodingRef for T
impl<T> ArrayEncodingRef for T
fn encoding(&self) -> &'static dyn ArrayEncoding
Source§impl<T> ArrayStatistics for T
impl<T> ArrayStatistics for T
fn statistics(&self) -> &dyn Statistics
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoArrayVariant for Twhere
T: IntoCanonical,
impl<T> IntoArrayVariant for Twhere
T: IntoCanonical,
fn into_null(self) -> Result<NullArray, VortexError>
fn into_bool(self) -> Result<BoolArray, VortexError>
fn into_primitive(self) -> Result<PrimitiveArray, VortexError>
fn into_struct(self) -> Result<StructArray, VortexError>
fn into_varbinview(self) -> Result<VarBinViewArray, VortexError>
fn into_extension(self) -> Result<ExtensionArray, VortexError>
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