Package org.apache.hadoop.io.compress.zlib
Enum Class ZlibCompressor.CompressionStrategy
java.lang.Object
java.lang.Enum<ZlibCompressor.CompressionStrategy>
org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy
- All Implemented Interfaces:
Serializable,Comparable<ZlibCompressor.CompressionStrategy>,Constable
- Enclosing class:
- org.apache.hadoop.io.compress.zlib.ZlibCompressor
public static enum ZlibCompressor.CompressionStrategy
extends Enum<ZlibCompressor.CompressionStrategy>
The compression level for zlib library.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault compression strategy.Compression strategy best used for data consisting mostly of small values with a somewhat random distribution.Compression strategy to prevent the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.Compression strategy for Huffman coding only.Compression strategy to limit match distances to one (run-length encoding). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ZlibCompressor.CompressionStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILTERED
Compression strategy best used for data consisting mostly of small values with a somewhat random distribution. Forces more Huffman coding and less string matching. -
HUFFMAN_ONLY
Compression strategy for Huffman coding only. -
RLE
Compression strategy to limit match distances to one (run-length encoding). -
FIXED
Compression strategy to prevent the use of dynamic Huffman codes, allowing for a simpler decoder for special applications. -
DEFAULT_STRATEGY
Default compression strategy.
-
-
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
-