pub struct GzipLevel(u32);
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
.
zlib
supports levels from 0 to 9.miniz_oxide
supports 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.
Tuple Fields§
§0: u32
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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