common_primitives/parquet/
column_compression_codec.rs1use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
2use scale_info::TypeInfo;
3use serde::{Deserialize, Serialize};
4
5#[derive(
7 Clone, Encode, Decode, PartialEq, Debug, TypeInfo, Eq, MaxEncodedLen, Serialize, Deserialize,
8)]
9#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
10pub enum ColumnCompressionCodec {
11 Uncompressed,
13 Snappy,
15 Gzip,
17 Lzo,
19 Brotli,
21 ZSTD,
23 Lz4Raw,
25}
26
27impl Default for ColumnCompressionCodec {
28 fn default() -> Self {
29 Self::Uncompressed
30 }
31}