Class MetaEncoder

java.lang.Object
io.atomix.raft.storage.serializer.MetaEncoder
All Implemented Interfaces:
org.agrona.sbe.EncoderFlyweight, org.agrona.sbe.Flyweight, org.agrona.sbe.MessageEncoderFlyweight, org.agrona.sbe.MessageFlyweight

public final class MetaEncoder extends Object implements org.agrona.sbe.MessageEncoderFlyweight
  • Field Details

  • Constructor Details

    • MetaEncoder

      public MetaEncoder()
  • 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.MutableDirectBuffer buffer()
      Specified by:
      buffer in interface org.agrona.sbe.EncoderFlyweight
      Specified by:
      buffer in interface org.agrona.sbe.Flyweight
    • offset

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

      public MetaEncoder wrap(org.agrona.MutableDirectBuffer buffer, int offset)
      Specified by:
      wrap in interface org.agrona.sbe.EncoderFlyweight
    • wrapAndApplyHeader

      public MetaEncoder wrapAndApplyHeader(org.agrona.MutableDirectBuffer buffer, int offset, MessageHeaderEncoder headerEncoder)
    • 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 MetaEncoder term(long value)
    • 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 MetaEncoder lastFlushedIndex(long value)
    • votedForId

      public static int votedForId()
    • votedForCharacterEncoding

      public static String votedForCharacterEncoding()
    • votedForMetaAttribute

      public static String votedForMetaAttribute(MetaAttribute metaAttribute)
    • votedForHeaderLength

      public static int votedForHeaderLength()
    • putVotedFor

      public MetaEncoder putVotedFor(org.agrona.DirectBuffer src, int srcOffset, int length)
    • putVotedFor

      public MetaEncoder putVotedFor(byte[] src, int srcOffset, int length)
    • votedFor

      public MetaEncoder votedFor(String value)
    • toString

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

      public StringBuilder appendTo(StringBuilder builder)