Enum Class OffsetEncoding

java.lang.Object
java.lang.Enum<OffsetEncoding>
io.confluent.parallelconsumer.offsets.OffsetEncoding
All Implemented Interfaces:
Serializable, Comparable<OffsetEncoding>, Constable

public enum OffsetEncoding extends Enum<OffsetEncoding>
  • Enum Constant Details

    • ByteArray

      public static final OffsetEncoding ByteArray
    • ByteArrayCompressed

      public static final OffsetEncoding ByteArrayCompressed
    • BitSet

      public static final OffsetEncoding BitSet
    • BitSetCompressed

      public static final OffsetEncoding BitSetCompressed
    • RunLength

      public static final OffsetEncoding RunLength
    • RunLengthCompressed

      public static final OffsetEncoding RunLengthCompressed
    • BitSetV2

      public static final OffsetEncoding BitSetV2
      switch from encoding bitset length as a short to an integer (length of 32,000 was reasonable too short)
    • BitSetV2Compressed

      public static final OffsetEncoding BitSetV2Compressed
    • RunLengthV2

      public static final OffsetEncoding RunLengthV2
      switch from encoding run lengths as Shorts to Integers
    • RunLengthV2Compressed

      public static final OffsetEncoding RunLengthV2Compressed
  • Field Details

  • Method Details

    • values

      public static OffsetEncoding[] 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

      public static OffsetEncoding valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • decode

      public static OffsetEncoding decode(byte magic)
    • description

      public String description()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<OffsetEncoding>
    • getMagicByte

      public byte getMagicByte()