public enum CompressionType extends java.lang.Enum<CompressionType>
Enum Constant and Description |
---|
RECORD_COMPRESSION_GZIP
Data compression using gzip method.
|
RECORD_COMPRESSION_LZ4
Data compression using fastest LZ4 method.
|
RECORD_COMPRESSION_LZ4_BEST
Data compression using slowest but most compact LZ4 method.
|
RECORD_UNCOMPRESSED
No data compression.
|
Modifier and Type | Method and Description |
---|---|
static CompressionType |
getCompressionType(int val)
Get the enum from the integer value.
|
java.lang.String |
getDescription()
Get the description.
|
(package private) int |
getValue()
Get the integer value associated with this header type.
|
boolean |
isCompressed()
Is this a form of compression?
|
static CompressionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionType RECORD_UNCOMPRESSED
public static final CompressionType RECORD_COMPRESSION_LZ4
public static final CompressionType RECORD_COMPRESSION_LZ4_BEST
public static final CompressionType RECORD_COMPRESSION_GZIP
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
int getValue()
public boolean isCompressed()
true
if is a form of compression, else false
public static CompressionType getCompressionType(int val)
val
- the value to match.null
.