pub struct IntEncoder { /* private fields */ }Implementations§
Source§impl IntEncoder
impl IntEncoder
pub const fn new(logical: LogicalEncoder, physical: PhysicalEncoder) -> Self
pub fn delta_fastpfor() -> IntEncoder
pub fn delta_rle_fastpfor() -> IntEncoder
pub fn delta_rle_varint() -> IntEncoder
pub fn delta_varint() -> IntEncoder
pub fn fastpfor() -> IntEncoder
pub fn plain() -> IntEncoder
pub fn rle_fastpfor() -> IntEncoder
pub fn rle_varint() -> IntEncoder
pub fn varint() -> IntEncoder
Sourcepub fn auto_u32(values: &[u32]) -> IntEncoder
pub fn auto_u32(values: &[u32]) -> IntEncoder
Automatically select the best encoder for a u32 stream.
Uses the BTRBlocks strategy:
- profile a small sample of the data to prune unsuitable candidates,
- then encode the same sample with all survivors and
- return the encoder that produces the smallest output.
FastPFOR is always preferred over VarInt when sizes are equal.
Sourcepub fn auto_u64(values: &[u64]) -> IntEncoder
pub fn auto_u64(values: &[u64]) -> IntEncoder
Automatically select the best encoder for a u64 stream.
Trait Implementations§
Source§impl Clone for IntEncoder
impl Clone for IntEncoder
Source§fn clone(&self) -> IntEncoder
fn clone(&self) -> IntEncoder
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 IntEncoder
impl Debug for IntEncoder
Source§impl PartialEq for IntEncoder
impl PartialEq for IntEncoder
impl Copy for IntEncoder
impl Eq for IntEncoder
impl StructuralPartialEq for IntEncoder
Auto Trait Implementations§
impl Freeze for IntEncoder
impl RefUnwindSafe for IntEncoder
impl Send for IntEncoder
impl Sync for IntEncoder
impl Unpin for IntEncoder
impl UnsafeUnpin for IntEncoder
impl UnwindSafe for IntEncoder
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