Package org.apache.druid.segment.data
Enum Class CompressionFactory.LongEncodingFormat
java.lang.Object
java.lang.Enum<CompressionFactory.LongEncodingFormat>
org.apache.druid.segment.data.CompressionFactory.LongEncodingFormat
- All Implemented Interfaces:
Serializable,Comparable<CompressionFactory.LongEncodingFormat>,Constable
- Enclosing class:
- CompressionFactory
public static enum CompressionFactory.LongEncodingFormat
extends Enum<CompressionFactory.LongEncodingFormat>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDELTA format encodes a series of longs by finding the smallest value first, and stores all values as offset to the smallest value.LONGS format encodes longs as is, using 8 bytes for each value.TABLE format encodes a series of longs by mapping each unique value to an id, and string the id with the minimum number of bits similar to how DELTA stores offset. -
Method Summary
-
Enum Constant Details
-
DELTA
DELTA format encodes a series of longs by finding the smallest value first, and stores all values as offset to the smallest value. The maximum value is also found to calculate how many bits are required to store each offset usingVSizeLongSerde. -
TABLE
TABLE format encodes a series of longs by mapping each unique value to an id, and string the id with the minimum number of bits similar to how DELTA stores offset. TABLE format is only applicable to values with less unique values thanCompressionFactory.MAX_TABLE_SIZE. -
LONGS
LONGS format encodes longs as is, using 8 bytes for each value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public byte getId() -
getReader
-
forId
-