Class MetaDecoder

java.lang.Object
io.atomix.raft.storage.serializer.MetaDecoder
All Implemented Interfaces:
org.agrona.sbe.DecoderFlyweight, org.agrona.sbe.Flyweight, org.agrona.sbe.MessageDecoderFlyweight, org.agrona.sbe.MessageFlyweight

public final class MetaDecoder extends Object implements org.agrona.sbe.MessageDecoderFlyweight
  • Field Details

  • Constructor Details

    • MetaDecoder

      public MetaDecoder()
  • Method Details

    • sbeBlockLength

      public int sbeBlockLength()
      Specified by:
      sbeBlockLength in interface org.agrona.sbe.MessageFlyweight
    • sbeTemplateId

      public int sbeTemplateId()
      Specified by:
      sbeTemplateId in interface org.agrona.sbe.MessageFlyweight
    • sbeSchemaId

      public int sbeSchemaId()
      Specified by:
      sbeSchemaId in interface org.agrona.sbe.Flyweight
    • sbeSchemaVersion

      public int sbeSchemaVersion()
      Specified by:
      sbeSchemaVersion in interface org.agrona.sbe.Flyweight
    • sbeSemanticType

      public String sbeSemanticType()
      Specified by:
      sbeSemanticType in interface org.agrona.sbe.MessageFlyweight
    • buffer

      public org.agrona.DirectBuffer buffer()
      Specified by:
      buffer in interface org.agrona.sbe.Flyweight
    • offset

      public int offset()
      Specified by:
      offset in interface org.agrona.sbe.Flyweight
    • wrap

      public MetaDecoder wrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion)
      Specified by:
      wrap in interface org.agrona.sbe.MessageDecoderFlyweight
    • wrapAndApplyHeader

      public MetaDecoder wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder)
    • sbeRewind

      public MetaDecoder sbeRewind()
    • sbeDecodedLength

      public int sbeDecodedLength()
      Specified by:
      sbeDecodedLength in interface org.agrona.sbe.MessageDecoderFlyweight
    • actingVersion

      public int actingVersion()
    • encodedLength

      public int encodedLength()
      Specified by:
      encodedLength in interface org.agrona.sbe.Flyweight
    • limit

      public int limit()
      Specified by:
      limit in interface org.agrona.sbe.MessageFlyweight
    • limit

      public void limit(int limit)
      Specified by:
      limit in interface org.agrona.sbe.MessageFlyweight
    • termId

      public static int termId()
    • termSinceVersion

      public static int termSinceVersion()
    • termEncodingOffset

      public static int termEncodingOffset()
    • termEncodingLength

      public static int termEncodingLength()
    • termMetaAttribute

      public static String termMetaAttribute(MetaAttribute metaAttribute)
    • termNullValue

      public static long termNullValue()
    • termMinValue

      public static long termMinValue()
    • termMaxValue

      public static long termMaxValue()
    • term

      public long term()
    • lastFlushedIndexId

      public static int lastFlushedIndexId()
    • lastFlushedIndexSinceVersion

      public static int lastFlushedIndexSinceVersion()
    • lastFlushedIndexEncodingOffset

      public static int lastFlushedIndexEncodingOffset()
    • lastFlushedIndexEncodingLength

      public static int lastFlushedIndexEncodingLength()
    • lastFlushedIndexMetaAttribute

      public static String lastFlushedIndexMetaAttribute(MetaAttribute metaAttribute)
    • lastFlushedIndexNullValue

      public static long lastFlushedIndexNullValue()
    • lastFlushedIndexMinValue

      public static long lastFlushedIndexMinValue()
    • lastFlushedIndexMaxValue

      public static long lastFlushedIndexMaxValue()
    • lastFlushedIndex

      public long lastFlushedIndex()
    • commitIndexId

      public static int commitIndexId()
    • commitIndexSinceVersion

      public static int commitIndexSinceVersion()
    • commitIndexEncodingOffset

      public static int commitIndexEncodingOffset()
    • commitIndexEncodingLength

      public static int commitIndexEncodingLength()
    • commitIndexMetaAttribute

      public static String commitIndexMetaAttribute(MetaAttribute metaAttribute)
    • commitIndexNullValue

      public static long commitIndexNullValue()
    • commitIndexMinValue

      public static long commitIndexMinValue()
    • commitIndexMaxValue

      public static long commitIndexMaxValue()
    • commitIndex

      public long commitIndex()
    • votedForId

      public static int votedForId()
    • votedForSinceVersion

      public static int votedForSinceVersion()
    • votedForCharacterEncoding

      public static String votedForCharacterEncoding()
    • votedForMetaAttribute

      public static String votedForMetaAttribute(MetaAttribute metaAttribute)
    • votedForHeaderLength

      public static int votedForHeaderLength()
    • votedForLength

      public int votedForLength()
    • skipVotedFor

      public int skipVotedFor()
    • getVotedFor

      public int getVotedFor(org.agrona.MutableDirectBuffer dst, int dstOffset, int length)
    • getVotedFor

      public int getVotedFor(byte[] dst, int dstOffset, int length)
    • wrapVotedFor

      public void wrapVotedFor(org.agrona.DirectBuffer wrapBuffer)
    • votedFor

      public String votedFor()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendTo

      public StringBuilder appendTo(StringBuilder builder)
      Specified by:
      appendTo in interface org.agrona.sbe.MessageDecoderFlyweight
    • sbeSkip

      public MetaDecoder sbeSkip()