Enum vortex_array::stats::Stat
source · #[repr(u8)]pub enum Stat {
BitWidthFreq = 0,
TrailingZeroFreq = 1,
IsConstant = 2,
IsSorted = 3,
IsStrictSorted = 4,
Max = 5,
Min = 6,
RunCount = 7,
TrueCount = 8,
NullCount = 9,
UncompressedSizeInBytes = 10,
}
Variants§
BitWidthFreq = 0
Frequency of each bit width (nulls are treated as 0)
TrailingZeroFreq = 1
Frequency of each trailing zero (nulls are treated as 0)
IsConstant = 2
Whether all values are the same (nulls are not equal to other non-null values, so this is true iff all values are null or all values are the same non-null value)
IsSorted = 3
Whether the non-null values in the array are sorted (i.e., we skip nulls)
IsStrictSorted = 4
Whether the non-null values in the array are strictly sorted (i.e., sorted with no duplicates)
Max = 5
The maximum value in the array (ignoring nulls, unless all values are null)
Min = 6
The minimum value in the array (ignoring nulls, unless all values are null)
RunCount = 7
The number of runs in the array (ignoring nulls)
TrueCount = 8
The number of true values in the array (nulls are treated as false)
NullCount = 9
The number of null values in the array
UncompressedSizeInBytes = 10
The uncompressed size of the array in bytes
Implementations§
source§impl Stat
impl Stat
sourcepub fn is_commutative(&self) -> bool
pub fn is_commutative(&self) -> bool
Whether the statistic is commutative (i.e., whether merging can be done independently of ordering) e.g., min/max are commutative, but is_sorted is not
sourcepub fn has_same_dtype_as_array(&self) -> bool
pub fn has_same_dtype_as_array(&self) -> bool
Whether the statistic has the same dtype as the array it’s computed on
pub fn dtype(&self, data_type: &DType) -> DType
pub fn name(&self) -> &str
Trait Implementations§
source§impl Sequence for Stat
impl Sequence for Stat
impl Copy for Stat
impl Eq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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
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)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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