Enum Class CompressionCodec
- All Implemented Interfaces:
Serializable, Comparable<CompressionCodec>, Constable
Compression codecs supported by Parquet.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBrotli compression (high ratio).Gzip compression (slower, higher ratio).LZ4 compression (Hadoop framing).LZ4 raw block compression (no Hadoop framing).LZO compression.Snappy compression (fast, moderate ratio).No compression.Zstandard compression. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionCodecReturns the enum constant of this class with the specified name.static CompressionCodec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNCOMPRESSED
No compression. -
SNAPPY
Snappy compression (fast, moderate ratio). -
GZIP
Gzip compression (slower, higher ratio). -
LZO
LZO compression. -
BROTLI
Brotli compression (high ratio). -
LZ4
LZ4 compression (Hadoop framing). -
ZSTD
Zstandard compression. -
LZ4_RAW
LZ4 raw block compression (no Hadoop framing).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-