Module org.elasticsearch.server
Enum Class DocOffsetsCodec
- All Implemented Interfaces:
Serializable,Comparable<DocOffsetsCodec>,Constable
Represents a codec for encoding and decoding document offsets.
Each codec defines custom strategies for compression and decompression
of document offsets for compressed binary doc values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA decoder to decode the format on disk to doc offsets.static interfaceAn encoder to store doc offsets in a more space-efficient format for storage.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA codec that uses delta encoding and bit-packing for storage of document offsets.A codec that uses grouped VInts for storage of document offsets. -
Method Summary
Modifier and TypeMethodDescriptionabstract DocOffsetsCodec.Decoderabstract DocOffsetsCodec.Encoderstatic DocOffsetsCodecReturns the enum constant of this class with the specified name.static DocOffsetsCodec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BITPACKING
A codec that uses delta encoding and bit-packing for storage of document offsets. -
GROUPED_VINT
A codec that uses grouped VInts for storage of document offsets.
-
-
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
-
getEncoder
-
getDecoder
-