Package io.confluent.parallelconsumer
Enum OffsetEncoding
java.lang.Object
java.lang.Enum<OffsetEncoding>
io.confluent.parallelconsumer.OffsetEncoding
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OffsetEncoding>,java.lang.constant.Constable
public enum OffsetEncoding extends java.lang.Enum<OffsetEncoding>
-
Nested Class Summary
-
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
-
Method Summary
Modifier and Type Method Description static OffsetEncodingdecode(byte magic)java.lang.Stringdescription()bytegetMagicByte()java.lang.StringtoString()static OffsetEncodingvalueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
decode
-
description
public java.lang.String description() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Enum<OffsetEncoding>
-
getMagicByte
public byte getMagicByte()
-