polars_parquet::parquet::statistics

Enum Statistics

Source
pub enum Statistics {
    Binary(BinaryStatistics),
    Boolean(BooleanStatistics),
    FixedLen(FixedLenStatistics),
    Int32(PrimitiveStatistics<i32>),
    Int64(PrimitiveStatistics<i64>),
    Int96(PrimitiveStatistics<[u32; 3]>),
    Float(PrimitiveStatistics<f32>),
    Double(PrimitiveStatistics<f64>),
}

Variants§

Implementations§

Source§

impl Statistics

Source

pub const fn physical_type(&self) -> &PhysicalType

Source

pub fn clear_min(&mut self)

Source

pub fn clear_max(&mut self)

Source

pub fn deserialize( statistics: &ParquetStatistics, primitive_type: PrimitiveType, ) -> ParquetResult<Self>

Deserializes a raw parquet statistics into Statistics.

§Error

This function errors if it is not possible to read the statistics to the corresponding physical_type.

Source§

impl Statistics

Source

pub const fn null_count(&self) -> Option<i64>

Source

pub fn serialize(&self) -> ParquetStatistics

Serializes Statistics into a raw parquet statistics.

Source

pub fn as_binary(&self) -> Option<&BinaryStatistics>

Source

pub fn into_binary(self) -> Option<BinaryStatistics>

Source

pub fn expect_as_binary(&self) -> &BinaryStatistics

Interpret Statistics to be BinaryStatistics

Panics if it is not the correct variant.

Source

pub fn expect_binary(self) -> BinaryStatistics

Interpret Statistics to be BinaryStatistics

Panics if it is not the correct variant.

Source

pub fn as_boolean(&self) -> Option<&BooleanStatistics>

Source

pub fn into_boolean(self) -> Option<BooleanStatistics>

Source

pub fn expect_as_boolean(&self) -> &BooleanStatistics

Interpret Statistics to be BooleanStatistics

Panics if it is not the correct variant.

Source

pub fn expect_boolean(self) -> BooleanStatistics

Interpret Statistics to be BooleanStatistics

Panics if it is not the correct variant.

Source

pub fn as_fixedlen(&self) -> Option<&FixedLenStatistics>

Source

pub fn into_fixedlen(self) -> Option<FixedLenStatistics>

Source

pub fn expect_as_fixedlen(&self) -> &FixedLenStatistics

Interpret Statistics to be FixedLenStatistics

Panics if it is not the correct variant.

Source

pub fn expect_fixedlen(self) -> FixedLenStatistics

Interpret Statistics to be FixedLenStatistics

Panics if it is not the correct variant.

Source

pub fn as_int32(&self) -> Option<&PrimitiveStatistics<i32>>

Source

pub fn into_int32(self) -> Option<PrimitiveStatistics<i32>>

Source

pub fn expect_as_int32(&self) -> &PrimitiveStatistics<i32>

Interpret Statistics to be PrimitiveStatistics<i32>

Panics if it is not the correct variant.

Source

pub fn expect_int32(self) -> PrimitiveStatistics<i32>

Interpret Statistics to be PrimitiveStatistics<i32>

Panics if it is not the correct variant.

Source

pub fn as_int64(&self) -> Option<&PrimitiveStatistics<i64>>

Source

pub fn into_int64(self) -> Option<PrimitiveStatistics<i64>>

Source

pub fn expect_as_int64(&self) -> &PrimitiveStatistics<i64>

Interpret Statistics to be PrimitiveStatistics<i64>

Panics if it is not the correct variant.

Source

pub fn expect_int64(self) -> PrimitiveStatistics<i64>

Interpret Statistics to be PrimitiveStatistics<i64>

Panics if it is not the correct variant.

Source

pub fn as_int96(&self) -> Option<&PrimitiveStatistics<[u32; 3]>>

Try to take Statistics as [PrimitiveStatistics<[u32; 3]>]

Source

pub fn into_int96(self) -> Option<PrimitiveStatistics<[u32; 3]>>

Try to take Statistics as [PrimitiveStatistics<[u32; 3]>]

Source

pub fn expect_as_int96(&self) -> &PrimitiveStatistics<[u32; 3]>

Interpret Statistics to be [PrimitiveStatistics<[u32; 3]>]

Panics if it is not the correct variant.

Source

pub fn expect_int96(self) -> PrimitiveStatistics<[u32; 3]>

Interpret Statistics to be [PrimitiveStatistics<[u32; 3]>]

Panics if it is not the correct variant.

Source

pub fn as_float(&self) -> Option<&PrimitiveStatistics<f32>>

Source

pub fn into_float(self) -> Option<PrimitiveStatistics<f32>>

Source

pub fn expect_as_float(&self) -> &PrimitiveStatistics<f32>

Interpret Statistics to be PrimitiveStatistics<f32>

Panics if it is not the correct variant.

Source

pub fn expect_float(self) -> PrimitiveStatistics<f32>

Interpret Statistics to be PrimitiveStatistics<f32>

Panics if it is not the correct variant.

Source

pub fn as_double(&self) -> Option<&PrimitiveStatistics<f64>>

Source

pub fn into_double(self) -> Option<PrimitiveStatistics<f64>>

Source

pub fn expect_as_double(&self) -> &PrimitiveStatistics<f64>

Interpret Statistics to be PrimitiveStatistics<f64>

Panics if it is not the correct variant.

Source

pub fn expect_double(self) -> PrimitiveStatistics<f64>

Interpret Statistics to be PrimitiveStatistics<f64>

Panics if it is not the correct variant.

Trait Implementations§

Source§

impl Debug for Statistics

Source§

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

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

impl From<BinaryStatistics> for Statistics

Source§

fn from(stats: BinaryStatistics) -> Self

Converts to this type from the input type.
Source§

impl From<BooleanStatistics> for Statistics

Source§

fn from(stats: BooleanStatistics) -> Self

Converts to this type from the input type.
Source§

impl From<FixedLenStatistics> for Statistics

Source§

fn from(stats: FixedLenStatistics) -> Self

Converts to this type from the input type.
Source§

impl From<PrimitiveStatistics<[u32; 3]>> for Statistics

Source§

fn from(stats: PrimitiveStatistics<[u32; 3]>) -> Self

Converts to this type from the input type.
Source§

impl From<PrimitiveStatistics<f32>> for Statistics

Source§

fn from(stats: PrimitiveStatistics<f32>) -> Self

Converts to this type from the input type.
Source§

impl From<PrimitiveStatistics<f64>> for Statistics

Source§

fn from(stats: PrimitiveStatistics<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<PrimitiveStatistics<i32>> for Statistics

Source§

fn from(stats: PrimitiveStatistics<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<PrimitiveStatistics<i64>> for Statistics

Source§

fn from(stats: PrimitiveStatistics<i64>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Statistics

Source§

fn eq(&self, other: &Statistics) -> 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 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, 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> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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.