/// Create new statistics with the specified count and null count and distinct values
Create new statistics with the specified count and null count and distinct values
Create new statistics with the specified count and null count and distinct values
pub fn new_with_distinct(
        min: Option<T>,
        max: Option<T>,
        total_count: u64,
        null_count: Option<u64>,
        distinct_count: Option<NonZeroU64>,
    ) -> Self {
        if let Some(min) = &min {
            assert!(!min.is_nan());
        }
        if let Some(max) = &max {
            assert!(!max.is_nan());
        }
        if let (Some(min), Some(max)) = (&min, &max) {
            assert!(min <= max);
        }
        Self {
            min,
            max,
            total_count,
            null_count,
            distinct_count,
        }
    }
pub fn new_with_distinct ( min : Option < T > , max : Option < T > , total_count : u64 , null_count : Option < u64 > , distinct_count : Option < NonZeroU64 > , ) -> Self { if let Some ( min ) = & min { assert ! ( min is_nan ( ) ) ; } if let Some ( max ) = & max { assert ! ( max is_nan ( ) ) ; } if let ( Some ( min ) , Some ( max ) ) = ( & min , & max ) { assert ! ( min max ) ; } Self { min , max , total_count , null_count , distinct_count , } }
Create new statistics with the specified count and null count and distinct values
Create new statistics with the specified count and null count and distinct values
min
Option<T>
max
Option<T>
total_count
u64
null_count
Option<u64>
distinct_count
Option<NonZeroU64>