pub enum Compress {
Plain,
Zstd(i32),
Lz4,
}Expand description
Per-page compression algorithm chosen at encode time (Phase 15.3). Mirrors the on-disk algo prefix byte; the decoder reads that byte and is fully self-describing, so a run may freely mix pages written under any variant.
Variants§
Plain
No compression (raw ALGO_PLAIN) — crate::Table::bulk_load_fast.
Zstd(i32)
zstd at level (3 for compaction, 1 for the level-1 bulk path).
Lz4
LZ4 — 3–5× faster decode than zstd with ~10% worse ratio; the default for hot/mutable runs that get scanned (Phase 15.3).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compress
impl RefUnwindSafe for Compress
impl Send for Compress
impl Sync for Compress
impl Unpin for Compress
impl UnsafeUnpin for Compress
impl UnwindSafe for Compress
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§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