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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    BitSet  
    BitSetCompressed  
    BitSetV2
    switch from encoding bitset length as a short to an integer (length of 32,000 was reasonable too short)
    BitSetV2Compressed  
    ByteArray  
    ByteArrayCompressed  
    RunLength  
    RunLengthCompressed  
    RunLengthV2
    switch from encoding run lengths as Shorts to Integers
    RunLengthV2Compressed  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    byte magicByte  
    io.confluent.parallelconsumer.OffsetEncoding.Version version  
  • Method Summary

    Modifier and Type Method Description
    static OffsetEncoding decode​(byte magic)  
    java.lang.String description()  
    byte getMagicByte()  
    java.lang.String toString()  
    static OffsetEncoding valueOf​(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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

    • version

      public final io.confluent.parallelconsumer.OffsetEncoding.Version version
    • magicByte

      public final byte magicByte
  • Method Details

    • values

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

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

      public static OffsetEncoding decode​(byte magic)
    • description

      public java.lang.String description()
    • toString

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

      public byte getMagicByte()