public enum CompressionAlgorithm extends Enum<CompressionAlgorithm>
Enum Constant and Description |
---|
CUSTOM |
FLOAT16 |
FLOAT8 |
GZIP |
INT16 |
INT8 |
NOOP |
UNIT8 |
Modifier and Type | Method and Description |
---|---|
static CompressionAlgorithm |
fromString(String algorithm)
Return the appropriate compression algorithm
from the given string
|
static CompressionAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionAlgorithm FLOAT8
public static final CompressionAlgorithm FLOAT16
public static final CompressionAlgorithm GZIP
public static final CompressionAlgorithm INT8
public static final CompressionAlgorithm INT16
public static final CompressionAlgorithm NOOP
public static final CompressionAlgorithm UNIT8
public static final CompressionAlgorithm CUSTOM
public static CompressionAlgorithm[] values()
for (CompressionAlgorithm c : CompressionAlgorithm.values()) System.out.println(c);
public static CompressionAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CompressionAlgorithm fromString(String algorithm)
algorithm
- the algorithm to returnCopyright © 2017. All rights reserved.