pub struct DataProfile { /* private fields */ }Expand description
Sampling-based encoder selection
§Strategy
Self::prune_candidates- “Prune”: Compute lightweight statistics over a representative sample of the data (average run length, sort order, max bit-width) and use them to prune obviously unsuitable candidates early.Self::compete_u32/Self::compete_u64- “Compete”: Encode the same sample with every surviving candidate and pick the one whose encoded output is smallest. In case of a tie- the physical priority order is
FastPFOR>VarInt>Noneand, - at the logical level, more complex transforms are deprioritized.
- the physical priority order is
Implementations§
Source§impl DataProfile
impl DataProfile
Sourcepub fn prune_candidates<T>(values: &[T::UInt]) -> Vec<IntEncoder>
pub fn prune_candidates<T>(values: &[T::UInt]) -> Vec<IntEncoder>
Profile a representative sample to prune unsuitable candidates.
pub fn compete_u32(candidates: &[IntEncoder], data: &[u32]) -> IntEncoder
pub fn compete_u64(candidates: &[IntEncoder], data: &[u64]) -> IntEncoder
Trait Implementations§
Source§impl Clone for DataProfile
impl Clone for DataProfile
Source§fn clone(&self) -> DataProfile
fn clone(&self) -> DataProfile
Returns a duplicate 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 Debug for DataProfile
impl Debug for DataProfile
Source§impl Default for DataProfile
impl Default for DataProfile
Source§fn default() -> DataProfile
fn default() -> DataProfile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DataProfile
impl RefUnwindSafe for DataProfile
impl Send for DataProfile
impl Sync for DataProfile
impl Unpin for DataProfile
impl UnsafeUnpin for DataProfile
impl UnwindSafe for DataProfile
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