Enum parquet::basic::Compression
source · pub enum Compression {
UNCOMPRESSED,
SNAPPY,
GZIP(GzipLevel),
LZO,
BROTLI(BrotliLevel),
LZ4,
ZSTD(ZstdLevel),
LZ4_RAW,
}
Expand description
Supported block compression algorithms.
Block compression can yield non-trivial improvements to storage efficiency at the expense of potentially significantly worse encode and decode performance. Many applications, especially those making use of high-throughput and low-cost commodity object storage, may find storage efficiency less important than decode throughput, and therefore may wish to not make use of block compression.
The writers in this crate default to no block compression for this reason.
Applications that do still wish to use block compression, will find Compression::ZSTD
to provide a good balance of compression, performance, and ecosystem support. Alternatively,
Compression::LZ4_RAW
provides much faster decompression speeds, at the cost of typically
worse compression ratios. However, it is not as widely supported by the ecosystem, with the
Hadoop ecosystem historically favoring the non-standard and now deprecated Compression::LZ4
.
Variants§
Trait Implementations§
source§impl Clone for Compression
impl Clone for Compression
source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Compression
impl Debug for Compression
source§impl Display for Compression
impl Display for Compression
source§impl From<Compression> for CompressionCodec
impl From<Compression> for CompressionCodec
source§fn from(value: Compression) -> Self
fn from(value: Compression) -> Self
source§impl FromStr for Compression
impl FromStr for Compression
source§impl PartialEq for Compression
impl PartialEq for Compression
source§fn eq(&self, other: &Compression) -> bool
fn eq(&self, other: &Compression) -> bool
self
and other
values to be equal, and is used
by ==
.