Enum OffsetEncoding
- All Implemented Interfaces:
Serializable,Comparable<OffsetEncoding>,Constable
public enum OffsetEncoding extends Enum<OffsetEncoding>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOffsetEncoding.Version -
Enum Constant Summary
Enum Constants Enum Constant Description BitSetBitSetCompressedBitSetV2switch from encoding bitset length as a short to an integer (length of 32,000 was reasonable too short)BitSetV2CompressedByteArrayByteArrayCompressedRunLengthRunLengthCompressedRunLengthV2switch from encoding run lengths as Shorts to IntegersRunLengthV2Compressed -
Field Summary
Fields Modifier and Type Field Description bytemagicByteOffsetEncoding.Versionversion -
Method Summary
Modifier and Type Method Description static OffsetEncodingdecode(byte magic)Stringdescription()bytegetMagicByte()StringtoString()static OffsetEncodingvalueOf(String name)Returns the enum constant of this type with the specified name.static OffsetEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ByteArray
-
ByteArrayCompressed
-
BitSet
-
BitSetCompressed
-
RunLength
-
RunLengthCompressed
-
BitSetV2
switch from encoding bitset length as a short to an integer (length of 32,000 was reasonable too short) -
BitSetV2Compressed
-
RunLengthV2
switch from encoding run lengths as Shorts to Integers -
RunLengthV2Compressed
-
-
Field Details
-
Method Details
-
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
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
-
decode
-
description
-
toString
- Overrides:
toStringin classEnum<OffsetEncoding>
-
getMagicByte
public byte getMagicByte()
-