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

source

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

source

pub fn has_same_dtype_as_array(&self) -> bool

Whether the statistic has the same dtype as the array it’s computed on

source

pub fn dtype(&self, data_type: &DType) -> DType

source

pub fn name(&self) -> &str

Trait Implementations§

source§

impl Clone for Stat

source§

fn clone(&self) -> Stat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Stat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Stat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Stat> for u8

source§

fn from(enum_value: Stat) -> Self

Converts to this type from the input type.
source§

impl Hash for Stat

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Stat

source§

fn eq(&self, other: &Stat) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sequence for Stat

source§

const CARDINALITY: usize = 11usize

Number of values of type Self. Read more
source§

fn next(&self) -> Option<Self>

Returns value following *self or None if this was the end. Read more
source§

fn previous(&self) -> Option<Self>

Returns value preceding *self or None if this was the beginning. Read more
source§

fn first() -> Option<Self>

Returns the first value of type Self. Read more
source§

fn last() -> Option<Self>

Returns the last value of type Self. Read more
source§

impl TryFrom<u8> for Stat

source§

type Error = TryFromPrimitiveError<Stat>

The type returned in the event of a conversion error.
source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for Stat

source§

type Primitive = u8

source§

type Error = TryFromPrimitiveError<Stat>

source§

const NAME: &'static str = "Stat"

source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for Stat

source§

impl Eq for Stat

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

§

impl<T> Ungil for T
where T: Send,