pub struct PrimitiveStatistics<T: NativeType> {
pub primitive_type: PrimitiveType,
pub null_count: Option<i64>,
pub distinct_count: Option<i64>,
pub min_value: Option<T>,
pub max_value: Option<T>,
}
Fields§
§primitive_type: PrimitiveType
§null_count: Option<i64>
§distinct_count: Option<i64>
§min_value: Option<T>
§max_value: Option<T>
Implementations§
Source§impl<T: NativeType> PrimitiveStatistics<T>
impl<T: NativeType> PrimitiveStatistics<T>
pub fn deserialize( v: &ParquetStatistics, primitive_type: PrimitiveType, ) -> ParquetResult<Self>
pub fn serialize(&self) -> ParquetStatistics
Trait Implementations§
Source§impl<T: Clone + NativeType> Clone for PrimitiveStatistics<T>
impl<T: Clone + NativeType> Clone for PrimitiveStatistics<T>
Source§fn clone(&self) -> PrimitiveStatistics<T>
fn clone(&self) -> PrimitiveStatistics<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug + NativeType> Debug for PrimitiveStatistics<T>
impl<T: Debug + NativeType> Debug for PrimitiveStatistics<T>
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
Converts to this type from the input type.
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
Converts to this type from the input type.
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
Converts to this type from the input type.
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
Converts to this type from the input type.
Source§impl<T: PartialEq + NativeType> PartialEq for PrimitiveStatistics<T>
impl<T: PartialEq + NativeType> PartialEq for PrimitiveStatistics<T>
impl<T: NativeType> StructuralPartialEq for PrimitiveStatistics<T>
Auto Trait Implementations§
impl<T> Freeze for PrimitiveStatistics<T>where
T: Freeze,
impl<T> RefUnwindSafe for PrimitiveStatistics<T>where
T: RefUnwindSafe,
impl<T> Send for PrimitiveStatistics<T>
impl<T> Sync for PrimitiveStatistics<T>
impl<T> Unpin for PrimitiveStatistics<T>where
T: Unpin,
impl<T> UnwindSafe for PrimitiveStatistics<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
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 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>
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