pub enum CompressionAlgorithm {
None,
Snappy,
Lz4,
Zstd,
Brotli,
}Expand description
Compression algorithm selection.
Maps to Parquet’s native compression codecs. All algorithms are included via parquet crate default features — no extra dependencies needed.
Variants§
None
No compression — fastest writes, largest files.
Snappy
Snappy — fast compression/decompression, moderate ratio. Default algorithm. Speed: 250-500 MB/s compress, 500-1500 MB/s decompress.
Lz4
LZ4 — ultra-fast compression, comparable ratio to Snappy. Best for latency-sensitive and streaming workloads.
Zstd
Zstandard — excellent compression ratio with configurable levels (1-22). Best for archival, cold storage, and batch analytics.
Brotli
Brotli — maximum compression ratio with configurable levels (0-11). Best for web deployment and network transfer.
Implementations§
Source§impl CompressionAlgorithm
impl CompressionAlgorithm
Sourcepub const ALL: &'static [CompressionAlgorithm]
pub const ALL: &'static [CompressionAlgorithm]
All supported compression algorithms for enumeration/benchmarks.
Trait Implementations§
Source§impl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
Source§fn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompressionAlgorithm
impl Debug for CompressionAlgorithm
Source§impl Display for CompressionAlgorithm
impl Display for CompressionAlgorithm
Source§impl Hash for CompressionAlgorithm
impl Hash for CompressionAlgorithm
Source§impl PartialEq for CompressionAlgorithm
impl PartialEq for CompressionAlgorithm
impl Copy for CompressionAlgorithm
impl Eq for CompressionAlgorithm
impl StructuralPartialEq for CompressionAlgorithm
Auto Trait Implementations§
impl Freeze for CompressionAlgorithm
impl RefUnwindSafe for CompressionAlgorithm
impl Send for CompressionAlgorithm
impl Sync for CompressionAlgorithm
impl Unpin for CompressionAlgorithm
impl UnsafeUnpin for CompressionAlgorithm
impl UnwindSafe for CompressionAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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