pub struct PrimitiveRangedUniqueState<T: NativeType> { /* private fields */ }
Expand description
A specialized unique kernel for PrimitiveArray
for when all values are in a small known
range.
Implementations§
Source§impl<T> PrimitiveRangedUniqueState<T>
impl<T> PrimitiveRangedUniqueState<T>
pub fn new( min_value: T, max_value: T, has_null: bool, dtype: ArrowDataType, ) -> Option<Self>
Trait Implementations§
Source§impl<T> RangedUniqueKernel for PrimitiveRangedUniqueState<T>
impl<T> RangedUniqueKernel for PrimitiveRangedUniqueState<T>
type Array = PrimitiveArray<T>
Source§fn has_seen_all(&self) -> bool
fn has_seen_all(&self) -> bool
Returns whether all the values in the whole range are in the state
Source§fn finalize_unique(self) -> Self::Array
fn finalize_unique(self) -> Self::Array
Consume the state to get the unique elements
Source§fn finalize_n_unique(self) -> usize
fn finalize_n_unique(self) -> usize
Consume the state to get the number of unique elements including null
Source§fn finalize_n_unique_non_null(self) -> usize
fn finalize_n_unique_non_null(self) -> usize
Consume the state to get the number of unique elements excluding null
Auto Trait Implementations§
impl<T> Freeze for PrimitiveRangedUniqueState<T>where
T: Freeze,
impl<T> RefUnwindSafe for PrimitiveRangedUniqueState<T>
impl<T> Send for PrimitiveRangedUniqueState<T>
impl<T> Sync for PrimitiveRangedUniqueState<T>
impl<T> Unpin for PrimitiveRangedUniqueState<T>where
T: Unpin,
impl<T> UnwindSafe for PrimitiveRangedUniqueState<T>where
T: UnwindSafe,
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