pub struct EncodingHints {
pub is_sorted: bool,
pub distinct_count: usize,
pub total_count: usize,
pub value_range: Option<u64>,
pub in_range_ratio: Option<f64>,
}Expand description
Statistics used for encoding selection.
Fields§
§is_sorted: boolIs data sorted?
distinct_count: usizeNumber of distinct values.
total_count: usizeTotal number of values.
value_range: Option<u64>For integers: value range (max - min).
in_range_ratio: Option<f64>Percentage of values within main range (for PFOR).
Trait Implementations§
Source§impl Default for EncodingHints
impl Default for EncodingHints
Source§fn default() -> EncodingHints
fn default() -> EncodingHints
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncodingHints
impl RefUnwindSafe for EncodingHints
impl Send for EncodingHints
impl Sync for EncodingHints
impl Unpin for EncodingHints
impl UnsafeUnpin for EncodingHints
impl UnwindSafe for EncodingHints
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