Enum ChunkCompressionType
- java.lang.Object
-
- java.lang.Enum<ChunkCompressionType>
-
- org.apache.pinot.segment.spi.compression.ChunkCompressionType
-
- All Implemented Interfaces:
Serializable,Comparable<ChunkCompressionType>,java.lang.constant.Constable
public enum ChunkCompressionType extends Enum<ChunkCompressionType>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LZ4LZ4_LENGTH_PREFIXEDPASS_THROUGHSNAPPYZSTANDARD
-
Method Summary
Modifier and Type Method Description intgetValue()static ChunkCompressionTypevalueOf(int ordinal)Returns the enum constant of this type with the specified name.static ChunkCompressionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ChunkCompressionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PASS_THROUGH
public static final ChunkCompressionType PASS_THROUGH
-
SNAPPY
public static final ChunkCompressionType SNAPPY
-
ZSTANDARD
public static final ChunkCompressionType ZSTANDARD
-
LZ4
public static final ChunkCompressionType LZ4
-
LZ4_LENGTH_PREFIXED
public static final ChunkCompressionType LZ4_LENGTH_PREFIXED
-
-
Method Detail
-
values
public static ChunkCompressionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChunkCompressionType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-
valueOf
public static ChunkCompressionType valueOf(int ordinal)
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:
ordinal- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-