Enum deltalake::datafusion::parquet::file::statistics::Statistics

source ·
pub enum Statistics {
    Boolean(ValueStatistics<bool>),
    Int32(ValueStatistics<i32>),
    Int64(ValueStatistics<i64>),
    Int96(ValueStatistics<Int96>),
    Float(ValueStatistics<f32>),
    Double(ValueStatistics<f64>),
    ByteArray(ValueStatistics<ByteArray>),
    FixedLenByteArray(ValueStatistics<FixedLenByteArray>),
}
Expand description

Statistics for a column chunk and data page.

Variants§

Implementations§

source§

impl Statistics

source

pub fn new<T>( min: Option<T>, max: Option<T>, distinct_count: Option<u64>, null_count: u64, is_deprecated: bool ) -> Statistics
where T: ParquetValueType,

source

pub fn boolean( min: Option<bool>, max: Option<bool>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn int32( min: Option<i32>, max: Option<i32>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn int64( min: Option<i64>, max: Option<i64>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn int96( min: Option<Int96>, max: Option<Int96>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn float( min: Option<f32>, max: Option<f32>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn double( min: Option<f64>, max: Option<f64>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn byte_array( min: Option<ByteArray>, max: Option<ByteArray>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn fixed_len_byte_array( min: Option<FixedLenByteArray>, max: Option<FixedLenByteArray>, distinct: Option<u64>, nulls: u64, is_deprecated: bool ) -> Statistics

source

pub fn is_min_max_deprecated(&self) -> bool

Returns true if statistics have old min and max fields set. This means that the column order is likely to be undefined, which, for old files could mean a signed sort order of values.

Refer to ColumnOrder and SortOrder for more information.

source

pub fn is_min_max_backwards_compatible(&self) -> bool

Old versions of parquet stored statistics in min and max fields, ordered using signed comparison. This resulted in an undefined ordering for unsigned quantities, such as booleans and unsigned integers.

These fields were therefore deprecated in favour of min_value and max_value, which have a type-defined sort order.

However, not all readers have been updated. For backwards compatibility, this method returns true if the statistics within this have a signed sort order, that is compatible with being stored in the deprecated min and max fields

source

pub fn distinct_count(&self) -> Option<u64>

Returns optional value of number of distinct values occurring. When it is None, the value should be ignored.

source

pub fn null_count(&self) -> u64

Returns number of null values for the column. Note that this includes all nulls when column is part of the complex type.

source

pub fn has_nulls(&self) -> bool

Returns true if statistics collected any null values, false otherwise.

source

pub fn has_min_max_set(&self) -> bool

Returns true if min value and max value are set. Normally both min/max values will be set to Some(value) or None.

source

pub fn min_is_exact(&self) -> bool

Returns true if the min value is set, and is an exact min value.

source

pub fn max_is_exact(&self) -> bool

Returns true if the max value is set, and is an exact max value.

source

pub fn min_bytes(&self) -> &[u8]

Returns slice of bytes that represent min value. Panics if min value is not set.

source

pub fn max_bytes(&self) -> &[u8]

Returns slice of bytes that represent max value. Panics if max value is not set.

source

pub fn physical_type(&self) -> Type

Returns physical type associated with statistics.

Trait Implementations§

source§

impl Clone for Statistics

source§

fn clone(&self) -> Statistics

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 Statistics

source§

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

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

impl Display for Statistics

source§

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

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

impl<T> From<ValueStatistics<T>> for Statistics
where T: ParquetValueType,

source§

fn from(t: ValueStatistics<T>) -> Statistics

Converts to this type from the input type.
source§

impl PartialEq for Statistics

source§

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

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

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

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

impl StructuralPartialEq for Statistics

Auto Trait Implementations§

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

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

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

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<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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>,

§

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

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

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

source§

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