pub struct ALPRDArray(/* private fields */);Implementations§
Source§impl ALPRDArray
impl ALPRDArray
Source§impl ALPRDArray
impl ALPRDArray
pub fn try_new( dtype: DType, left_parts: ArrayData, left_parts_dict: impl AsRef<[u16]>, right_parts: ArrayData, right_bit_width: u8, left_parts_patches: Option<Patches>, ) -> VortexResult<Self>
Sourcepub fn is_f32(&self) -> bool
pub fn is_f32(&self) -> bool
Returns true if logical type of the array values is f32.
Returns false if the logical type of the array values is f64.
Sourcepub fn left_parts(&self) -> ArrayData
pub fn left_parts(&self) -> ArrayData
The leftmost (most significant) bits of the floating point values stored in the array.
These are bit-packed and dictionary encoded, and cannot directly be interpreted without the metadata of this array.
Sourcepub fn right_parts(&self) -> ArrayData
pub fn right_parts(&self) -> ArrayData
The rightmost (least significant) bits of the floating point values stored in the array.
Sourcepub fn left_parts_patches(&self) -> Option<Patches>
pub fn left_parts_patches(&self) -> Option<Patches>
Patches of left-most bits.
Sourcepub fn left_parts_dict(&self) -> &[u16]
pub fn left_parts_dict(&self) -> &[u16]
The dictionary that maps the codes in left_parts into bit patterns.
Trait Implementations§
Source§impl AsRef<ArrayData> for ALPRDArray
impl AsRef<ArrayData> for ALPRDArray
Source§impl Clone for ALPRDArray
impl Clone for ALPRDArray
Source§fn clone(&self) -> ALPRDArray
fn clone(&self) -> ALPRDArray
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 ALPRDArray
impl Debug for ALPRDArray
Source§impl FilterFn<ALPRDArray> for ALPRDEncoding
impl FilterFn<ALPRDArray> for ALPRDEncoding
Source§fn filter(
&self,
array: &ALPRDArray,
mask: &FilterMask,
) -> VortexResult<ArrayData>
fn filter( &self, array: &ALPRDArray, mask: &FilterMask, ) -> VortexResult<ArrayData>
Filter an array by the provided predicate.
Source§impl IntoArrayData for ALPRDArray
impl IntoArrayData for ALPRDArray
fn into_array(self) -> ArrayData
Source§impl IntoCanonical for ALPRDArray
impl IntoCanonical for ALPRDArray
fn into_canonical(self) -> VortexResult<Canonical>
fn into_arrow(self) -> Result<Arc<dyn Array>, VortexError>where
Self: Sized,
fn into_arrow_with_data_type(
self,
data_type: &DataType,
) -> Result<Arc<dyn Array>, VortexError>where
Self: Sized,
Source§impl PrimitiveArrayTrait for ALPRDArray
impl PrimitiveArrayTrait for ALPRDArray
Source§impl ScalarAtFn<ALPRDArray> for ALPRDEncoding
impl ScalarAtFn<ALPRDArray> for ALPRDEncoding
fn scalar_at(&self, array: &ALPRDArray, index: usize) -> VortexResult<Scalar>
Source§impl SliceFn<ALPRDArray> for ALPRDEncoding
impl SliceFn<ALPRDArray> for ALPRDEncoding
Source§fn slice(
&self,
array: &ALPRDArray,
start: usize,
stop: usize,
) -> VortexResult<ArrayData>
fn slice( &self, array: &ALPRDArray, 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<ALPRDArray> for ALPRDEncoding
impl StatisticsVTable<ALPRDArray> for ALPRDEncoding
Source§fn compute_statistics(
&self,
_array: &Array,
_stat: Stat,
) -> Result<StatsSet, VortexError>
fn compute_statistics( &self, _array: &Array, _stat: Stat, ) -> Result<StatsSet, VortexError>
Compute the requested statistic. Can return additional stats.
Source§impl TakeFn<ALPRDArray> for ALPRDEncoding
impl TakeFn<ALPRDArray> for ALPRDEncoding
Source§fn take(
&self,
array: &ALPRDArray,
indices: &ArrayData,
) -> VortexResult<ArrayData>
fn take( &self, array: &ALPRDArray, 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<'a> TryFrom<&'a ArrayData> for &'a ALPRDArray
impl<'a> TryFrom<&'a ArrayData> for &'a ALPRDArray
Source§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
Source§fn try_from(data: &'a ArrayData) -> VortexResult<Self>
fn try_from(data: &'a ArrayData) -> VortexResult<Self>
Performs the conversion.
Source§impl TryFrom<ArrayData> for ALPRDArray
impl TryFrom<ArrayData> for ALPRDArray
Source§type Error = VortexError
type Error = VortexError
The type returned in the event of a conversion error.
Source§fn try_from(data: ArrayData) -> VortexResult<Self>
fn try_from(data: ArrayData) -> VortexResult<Self>
Performs the conversion.
Source§impl ValidateVTable<ALPRDArray> for ALPRDEncoding
impl ValidateVTable<ALPRDArray> for ALPRDEncoding
Source§impl ValidityVTable<ALPRDArray> for ALPRDEncoding
impl ValidityVTable<ALPRDArray> for ALPRDEncoding
fn is_valid(&self, array: &ALPRDArray, index: usize) -> bool
fn logical_validity(&self, array: &ALPRDArray) -> LogicalValidity
Source§impl VariantsVTable<ALPRDArray> for ALPRDEncoding
impl VariantsVTable<ALPRDArray> for ALPRDEncoding
fn as_primitive_array<'a>( &self, array: &'a ALPRDArray, ) -> 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<ALPRDArray> for ALPRDEncoding
impl VisitorVTable<ALPRDArray> for ALPRDEncoding
fn accept( &self, array: &ALPRDArray, visitor: &mut dyn ArrayVisitor, ) -> VortexResult<()>
impl ArrayTrait for ALPRDArray
Auto Trait Implementations§
impl !Freeze for ALPRDArray
impl !RefUnwindSafe for ALPRDArray
impl Send for ALPRDArray
impl Sync for ALPRDArray
impl Unpin for ALPRDArray
impl !UnwindSafe for ALPRDArray
Blanket Implementations§
Source§impl<T> ArrayEncodingRef for T
impl<T> ArrayEncodingRef for T
fn encoding(&self) -> &'static dyn EncodingVTable
Source§impl<A> ArrayNBytes for A
impl<A> ArrayNBytes for A
Source§impl<T> ArrayStatistics for T
impl<T> ArrayStatistics for T
fn statistics(&self) -> &dyn Statistics
fn inherit_statistics(&self, parent: &dyn Statistics)
Source§impl<A> ArrayValidity for A
impl<A> ArrayValidity for A
Source§fn is_valid(&self, index: usize) -> bool
fn is_valid(&self, index: usize) -> bool
Return whether the element at the given index is valid (true) or null (false).
Source§fn logical_validity(&self) -> LogicalValidity
fn logical_validity(&self) -> LogicalValidity
Return the logical validity of the array.
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> 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_list(self) -> Result<ListArray, 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