Package org.apache.druid.segment.data
Enum Class CompressionFactory.LongEncodingStrategy
java.lang.Object
java.lang.Enum<CompressionFactory.LongEncodingStrategy>
org.apache.druid.segment.data.CompressionFactory.LongEncodingStrategy
- All Implemented Interfaces:
Serializable,Comparable<CompressionFactory.LongEncodingStrategy>,Constable
- Enclosing class:
- CompressionFactory
public static enum CompressionFactory.LongEncodingStrategy
extends Enum<CompressionFactory.LongEncodingStrategy>
The compression of decompression of encodings are separated into different enums. EncodingStrategy refers to the
strategy used to encode the data, and EncodingFormat refers to the format the data is encoded in. Note there is not
necessarily an one-to-one mapping between to two. For instance, the AUTO LongEncodingStrategy scans the data once
and decide on which LongEncodingFormat to use based on data property, so it's possible for the EncodingStrategy to
write in any of the LongEncodingFormat. On the other hand, there are no LongEncodingStrategy that always write in
TABLE LongEncodingFormat since it only works for data with low cardinality.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfromString(String name) toString()Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
AUTO strategy scans all values once before encoding them. It stores the value cardinality and maximum offset of the values to determine whether to use DELTA, TABLE, or LONGS format. -
LONGS
LONGS strategy always encode the values using LONGS format
-
-
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
-
toString
- Overrides:
toStringin classEnum<CompressionFactory.LongEncodingStrategy>
-
fromString
-