pub struct SequenceArray { /* private fields */ }
Expand description
Represents the equation A[i] = a * i b.
This can be used for compression, fast comparisons and also for row ids.
An array representing the equation A[i] = base + i * multiplier
.
Implementations§
Source§impl SequenceArray
impl SequenceArray
pub fn typed_new<T: NativePType + Into<PValue>>( base: T, multiplier: T, nullability: Nullability, length: usize, ) -> VortexResult<Self>
Sourcepub fn new(
base: PValue,
multiplier: PValue,
ptype: PType,
nullability: Nullability,
length: usize,
) -> VortexResult<Self>
pub fn new( base: PValue, multiplier: PValue, ptype: PType, nullability: Nullability, length: usize, ) -> VortexResult<Self>
Constructs a sequence array using two integer values (with the same ptype).
pub fn ptype(&self) -> PType
pub fn base(&self) -> PValue
pub fn multiplier(&self) -> PValue
Trait Implementations§
Source§impl AsRef<dyn Array> for SequenceArray
impl AsRef<dyn Array> for SequenceArray
Source§impl Clone for SequenceArray
impl Clone for SequenceArray
Source§fn clone(&self) -> SequenceArray
fn clone(&self) -> SequenceArray
Returns a duplicate 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 SequenceArray
impl Debug for SequenceArray
Source§impl Deref for SequenceArray
impl Deref for SequenceArray
Source§impl IntoArray for SequenceArray
impl IntoArray for SequenceArray
fn into_array(self) -> ArrayRef
Auto Trait Implementations§
impl Freeze for SequenceArray
impl !RefUnwindSafe for SequenceArray
impl Send for SequenceArray
impl Sync for SequenceArray
impl Unpin for SequenceArray
impl !UnwindSafe for SequenceArray
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