pub struct GzipLevel(/* private fields */);Expand description
Represents a valid gzip compression level.
Defaults to 6.
- 0: least compression
- 9: most compression (that other software can read)
- 10: most compression (incompatible with other software, see below)
§WARNING:
Level 10 compression can offer smallest file size, but Parquet files created with it will not be readable by other “standard” paquet readers.
Do NOT use level 10 if you need other software to be able to read the files. Read below for details.
§IMPORTANT:
There’s often confusion about the compression levels in flate2 vs arrow
as highlighted in issue #1011.
flate2 supports two compression backends: miniz_oxide and zlib.
zlibsupports levels from 0 to 9.miniz_oxidesupports levels from 0 to 10.
arrow uses flate with rust_backend feature,
which provides miniz_oxide as the backend.
Therefore 0-10 levels are supported.
flate2 documents this behavior properly with
this commit.
Implementations§
Trait Implementations§
impl Copy for GzipLevel
impl Eq for GzipLevel
impl StructuralPartialEq for GzipLevel
Auto Trait Implementations§
impl Freeze for GzipLevel
impl RefUnwindSafe for GzipLevel
impl Send for GzipLevel
impl Sync for GzipLevel
impl Unpin for GzipLevel
impl UnwindSafe for GzipLevel
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<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
Compare self to
key and return true if they are equal.