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§
Binary(BinaryStatistics)
Boolean(BooleanStatistics)
FixedLen(FixedLenStatistics)
Int32(PrimitiveStatistics<i32>)
Int64(PrimitiveStatistics<i64>)
Int96(PrimitiveStatistics<[u32; 3]>)
Float(PrimitiveStatistics<f32>)
Double(PrimitiveStatistics<f64>)
Implementations§
Source§impl Statistics
impl Statistics
pub const fn physical_type(&self) -> &PhysicalType
pub fn clear_min(&mut self)
pub fn clear_max(&mut self)
Sourcepub fn deserialize(
statistics: &ParquetStatistics,
primitive_type: PrimitiveType,
) -> ParquetResult<Self>
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
impl Statistics
pub const fn null_count(&self) -> Option<i64>
Sourcepub fn serialize(&self) -> ParquetStatistics
pub fn serialize(&self) -> ParquetStatistics
Serializes Statistics
into a raw parquet statistics.
Sourcepub fn as_binary(&self) -> Option<&BinaryStatistics>
pub fn as_binary(&self) -> Option<&BinaryStatistics>
Try to take Statistics
as BinaryStatistics
Sourcepub fn into_binary(self) -> Option<BinaryStatistics>
pub fn into_binary(self) -> Option<BinaryStatistics>
Try to take Statistics
as BinaryStatistics
Sourcepub fn expect_as_binary(&self) -> &BinaryStatistics
pub fn expect_as_binary(&self) -> &BinaryStatistics
Interpret Statistics
to be BinaryStatistics
Panics if it is not the correct variant.
Sourcepub fn expect_binary(self) -> BinaryStatistics
pub fn expect_binary(self) -> BinaryStatistics
Interpret Statistics
to be BinaryStatistics
Panics if it is not the correct variant.
Sourcepub fn as_boolean(&self) -> Option<&BooleanStatistics>
pub fn as_boolean(&self) -> Option<&BooleanStatistics>
Try to take Statistics
as BooleanStatistics
Sourcepub fn into_boolean(self) -> Option<BooleanStatistics>
pub fn into_boolean(self) -> Option<BooleanStatistics>
Try to take Statistics
as BooleanStatistics
Sourcepub fn expect_as_boolean(&self) -> &BooleanStatistics
pub fn expect_as_boolean(&self) -> &BooleanStatistics
Interpret Statistics
to be BooleanStatistics
Panics if it is not the correct variant.
Sourcepub fn expect_boolean(self) -> BooleanStatistics
pub fn expect_boolean(self) -> BooleanStatistics
Interpret Statistics
to be BooleanStatistics
Panics if it is not the correct variant.
Sourcepub fn as_fixedlen(&self) -> Option<&FixedLenStatistics>
pub fn as_fixedlen(&self) -> Option<&FixedLenStatistics>
Try to take Statistics
as FixedLenStatistics
Sourcepub fn into_fixedlen(self) -> Option<FixedLenStatistics>
pub fn into_fixedlen(self) -> Option<FixedLenStatistics>
Try to take Statistics
as FixedLenStatistics
Sourcepub fn expect_as_fixedlen(&self) -> &FixedLenStatistics
pub fn expect_as_fixedlen(&self) -> &FixedLenStatistics
Interpret Statistics
to be FixedLenStatistics
Panics if it is not the correct variant.
Sourcepub fn expect_fixedlen(self) -> FixedLenStatistics
pub fn expect_fixedlen(self) -> FixedLenStatistics
Interpret Statistics
to be FixedLenStatistics
Panics if it is not the correct variant.
Sourcepub fn as_int32(&self) -> Option<&PrimitiveStatistics<i32>>
pub fn as_int32(&self) -> Option<&PrimitiveStatistics<i32>>
Try to take Statistics
as PrimitiveStatistics<i32>
Sourcepub fn into_int32(self) -> Option<PrimitiveStatistics<i32>>
pub fn into_int32(self) -> Option<PrimitiveStatistics<i32>>
Try to take Statistics
as PrimitiveStatistics<i32>
Sourcepub fn expect_as_int32(&self) -> &PrimitiveStatistics<i32>
pub fn expect_as_int32(&self) -> &PrimitiveStatistics<i32>
Interpret Statistics
to be PrimitiveStatistics<i32>
Panics if it is not the correct variant.
Sourcepub fn expect_int32(self) -> PrimitiveStatistics<i32>
pub fn expect_int32(self) -> PrimitiveStatistics<i32>
Interpret Statistics
to be PrimitiveStatistics<i32>
Panics if it is not the correct variant.
Sourcepub fn as_int64(&self) -> Option<&PrimitiveStatistics<i64>>
pub fn as_int64(&self) -> Option<&PrimitiveStatistics<i64>>
Try to take Statistics
as PrimitiveStatistics<i64>
Sourcepub fn into_int64(self) -> Option<PrimitiveStatistics<i64>>
pub fn into_int64(self) -> Option<PrimitiveStatistics<i64>>
Try to take Statistics
as PrimitiveStatistics<i64>
Sourcepub fn expect_as_int64(&self) -> &PrimitiveStatistics<i64>
pub fn expect_as_int64(&self) -> &PrimitiveStatistics<i64>
Interpret Statistics
to be PrimitiveStatistics<i64>
Panics if it is not the correct variant.
Sourcepub fn expect_int64(self) -> PrimitiveStatistics<i64>
pub fn expect_int64(self) -> PrimitiveStatistics<i64>
Interpret Statistics
to be PrimitiveStatistics<i64>
Panics if it is not the correct variant.
Sourcepub fn as_int96(&self) -> Option<&PrimitiveStatistics<[u32; 3]>>
pub fn as_int96(&self) -> Option<&PrimitiveStatistics<[u32; 3]>>
Try to take Statistics
as [PrimitiveStatistics<[u32; 3]>
]
Sourcepub fn into_int96(self) -> Option<PrimitiveStatistics<[u32; 3]>>
pub fn into_int96(self) -> Option<PrimitiveStatistics<[u32; 3]>>
Try to take Statistics
as [PrimitiveStatistics<[u32; 3]>
]
Sourcepub fn expect_as_int96(&self) -> &PrimitiveStatistics<[u32; 3]>
pub fn expect_as_int96(&self) -> &PrimitiveStatistics<[u32; 3]>
Interpret Statistics
to be [PrimitiveStatistics<[u32; 3]>
]
Panics if it is not the correct variant.
Sourcepub fn expect_int96(self) -> PrimitiveStatistics<[u32; 3]>
pub fn expect_int96(self) -> PrimitiveStatistics<[u32; 3]>
Interpret Statistics
to be [PrimitiveStatistics<[u32; 3]>
]
Panics if it is not the correct variant.
Sourcepub fn as_float(&self) -> Option<&PrimitiveStatistics<f32>>
pub fn as_float(&self) -> Option<&PrimitiveStatistics<f32>>
Try to take Statistics
as PrimitiveStatistics<f32>
Sourcepub fn into_float(self) -> Option<PrimitiveStatistics<f32>>
pub fn into_float(self) -> Option<PrimitiveStatistics<f32>>
Try to take Statistics
as PrimitiveStatistics<f32>
Sourcepub fn expect_as_float(&self) -> &PrimitiveStatistics<f32>
pub fn expect_as_float(&self) -> &PrimitiveStatistics<f32>
Interpret Statistics
to be PrimitiveStatistics<f32>
Panics if it is not the correct variant.
Sourcepub fn expect_float(self) -> PrimitiveStatistics<f32>
pub fn expect_float(self) -> PrimitiveStatistics<f32>
Interpret Statistics
to be PrimitiveStatistics<f32>
Panics if it is not the correct variant.
Sourcepub fn as_double(&self) -> Option<&PrimitiveStatistics<f64>>
pub fn as_double(&self) -> Option<&PrimitiveStatistics<f64>>
Try to take Statistics
as PrimitiveStatistics<f64>
Sourcepub fn into_double(self) -> Option<PrimitiveStatistics<f64>>
pub fn into_double(self) -> Option<PrimitiveStatistics<f64>>
Try to take Statistics
as PrimitiveStatistics<f64>
Sourcepub fn expect_as_double(&self) -> &PrimitiveStatistics<f64>
pub fn expect_as_double(&self) -> &PrimitiveStatistics<f64>
Interpret Statistics
to be PrimitiveStatistics<f64>
Panics if it is not the correct variant.
Sourcepub fn expect_double(self) -> PrimitiveStatistics<f64>
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
impl Debug for Statistics
Source§impl From<BinaryStatistics> for Statistics
impl From<BinaryStatistics> for Statistics
Source§fn from(stats: BinaryStatistics) -> Self
fn from(stats: BinaryStatistics) -> Self
Source§impl From<BooleanStatistics> for Statistics
impl From<BooleanStatistics> for Statistics
Source§fn from(stats: BooleanStatistics) -> Self
fn from(stats: BooleanStatistics) -> Self
Source§impl From<FixedLenStatistics> for Statistics
impl From<FixedLenStatistics> for Statistics
Source§fn from(stats: FixedLenStatistics) -> Self
fn from(stats: FixedLenStatistics) -> Self
Source§impl From<PrimitiveStatistics<[u32; 3]>> for Statistics
impl From<PrimitiveStatistics<[u32; 3]>> for Statistics
Source§impl From<PrimitiveStatistics<f32>> for Statistics
impl From<PrimitiveStatistics<f32>> for Statistics
Source§fn from(stats: PrimitiveStatistics<f32>) -> Self
fn from(stats: PrimitiveStatistics<f32>) -> Self
Source§impl From<PrimitiveStatistics<f64>> for Statistics
impl From<PrimitiveStatistics<f64>> for Statistics
Source§fn from(stats: PrimitiveStatistics<f64>) -> Self
fn from(stats: PrimitiveStatistics<f64>) -> Self
Source§impl From<PrimitiveStatistics<i32>> for Statistics
impl From<PrimitiveStatistics<i32>> for Statistics
Source§fn from(stats: PrimitiveStatistics<i32>) -> Self
fn from(stats: PrimitiveStatistics<i32>) -> Self
Source§impl From<PrimitiveStatistics<i64>> for Statistics
impl From<PrimitiveStatistics<i64>> for Statistics
Source§fn from(stats: PrimitiveStatistics<i64>) -> Self
fn from(stats: PrimitiveStatistics<i64>) -> Self
Source§impl PartialEq for Statistics
impl PartialEq for Statistics
impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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> 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