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§impl TryFrom<CompressionCodec> for Compression
impl TryFrom<CompressionCodec> for Compression
§type Error = ParquetError
type Error = ParquetError
source§fn try_from(value: CompressionCodec) -> Result<Self>
fn try_from(value: CompressionCodec) -> Result<Self>
impl Copy for Compression
impl Eq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)