|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ZlibCompressor.CompressionStrategy> org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy
public static enum ZlibCompressor.CompressionStrategy
The compression level for zlib library.
Enum Constant Summary | |
---|---|
DEFAULT_STRATEGY
Default compression strategy. |
|
FILTERED
Compression strategy best used for data consisting mostly of small values with a somewhat random distribution. |
|
FIXED
Compression strategy to prevent the use of dynamic Huffman codes, allowing for a simpler decoder for special applications. |
|
HUFFMAN_ONLY
Compression strategy for Huffman coding only. |
|
RLE
Compression strategy to limit match distances to one (run-length encoding). |
Method Summary | |
---|---|
static ZlibCompressor.CompressionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ZlibCompressor.CompressionStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ZlibCompressor.CompressionStrategy FILTERED
public static final ZlibCompressor.CompressionStrategy HUFFMAN_ONLY
public static final ZlibCompressor.CompressionStrategy RLE
public static final ZlibCompressor.CompressionStrategy FIXED
public static final ZlibCompressor.CompressionStrategy DEFAULT_STRATEGY
Method Detail |
---|
public static ZlibCompressor.CompressionStrategy[] values()
for (ZlibCompressor.CompressionStrategy c : ZlibCompressor.CompressionStrategy.values()) System.out.println(c);
public static ZlibCompressor.CompressionStrategy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |