Package com.linkedin.venice.compression
Enum CompressionStrategy
- java.lang.Object
-
- java.lang.Enum<CompressionStrategy>
-
- com.linkedin.venice.compression.CompressionStrategy
-
- All Implemented Interfaces:
VeniceEnumValue
,java.io.Serializable
,java.lang.Comparable<CompressionStrategy>
public enum CompressionStrategy extends java.lang.Enum<CompressionStrategy> implements VeniceEnumValue
Enums of the strategies used to compress/decompress Record's value
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GZIP
NO_OP
ZSTD
Deprecated.ZSTD_WITH_DICT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getCompressionStrategyTypesArrayLength()
int
getValue()
boolean
isCompressionEnabled()
static CompressionStrategy
valueOf(int value)
Returns the enum constant of this type with the specified name.static CompressionStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CompressionStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_OP
public static final CompressionStrategy NO_OP
-
GZIP
public static final CompressionStrategy GZIP
-
ZSTD
@Deprecated public static final CompressionStrategy ZSTD
Deprecated.
-
ZSTD_WITH_DICT
public static final CompressionStrategy ZSTD_WITH_DICT
-
-
Method Detail
-
values
public static CompressionStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompressionStrategy c : CompressionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressionStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceVeniceEnumValue
-
isCompressionEnabled
public boolean isCompressionEnabled()
-
valueOf
public static CompressionStrategy valueOf(int value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCompressionStrategyTypesArrayLength
public static int getCompressionStrategyTypesArrayLength()
-
-