#[non_exhaustive]pub enum ParquetCompression {
Uncompressed,
Snappy,
Gzip,
Lz4Raw,
Brotli,
Zstd,
}Expand description
Parquet compression algorithm.
This enum is #[non_exhaustive]: new codec variants may be added in
minor releases. Match with a wildcard arm to remain forward-compatible.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Uncompressed
No compression.
Snappy
Snappy compression (fast, moderate ratio).
Gzip
Gzip compression (levels 0-9).
Lz4Raw
LZ4 raw compression.
Brotli
Brotli compression (levels 0-11).
Zstd
Zstandard compression (levels 0-22).
Trait Implementations§
Source§impl Clone for ParquetCompression
impl Clone for ParquetCompression
Source§fn clone(&self) -> ParquetCompression
fn clone(&self) -> ParquetCompression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParquetCompression
impl Debug for ParquetCompression
Source§impl Display for ParquetCompression
impl Display for ParquetCompression
Source§impl FromStr for ParquetCompression
impl FromStr for ParquetCompression
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a codec name (case-insensitive) into a ParquetCompression.
Accepted values: "uncompressed", "snappy", "gzip", "lz4-raw"
(or "lz4raw"), "brotli", "zstd".
§Errors
Returns ReadStatError::UnknownFormat for unrecognized codec names.
Source§type Err = ReadStatError
type Err = ReadStatError
The associated error which can be returned from parsing.
Source§impl Hash for ParquetCompression
impl Hash for ParquetCompression
Source§impl PartialEq for ParquetCompression
impl PartialEq for ParquetCompression
impl Copy for ParquetCompression
impl Eq for ParquetCompression
impl StructuralPartialEq for ParquetCompression
Auto Trait Implementations§
impl Freeze for ParquetCompression
impl RefUnwindSafe for ParquetCompression
impl Send for ParquetCompression
impl Sync for ParquetCompression
impl Unpin for ParquetCompression
impl UnsafeUnpin for ParquetCompression
impl UnwindSafe for ParquetCompression
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
§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
Compare self to
key and return true if they are equal.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