Class SnapshotChunkDecoder

java.lang.Object
io.atomix.raft.snapshot.impl.SnapshotChunkDecoder
All Implemented Interfaces:
org.agrona.sbe.DecoderFlyweight, org.agrona.sbe.Flyweight, org.agrona.sbe.MessageDecoderFlyweight, org.agrona.sbe.MessageFlyweight

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

  • Constructor Details

    • SnapshotChunkDecoder

      public SnapshotChunkDecoder()
  • 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 SnapshotChunkDecoder wrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion)
      Specified by:
      wrap in interface org.agrona.sbe.MessageDecoderFlyweight
    • wrapAndApplyHeader

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

      public SnapshotChunkDecoder 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
    • totalCountId

      public static int totalCountId()
    • totalCountSinceVersion

      public static int totalCountSinceVersion()
    • totalCountEncodingOffset

      public static int totalCountEncodingOffset()
    • totalCountEncodingLength

      public static int totalCountEncodingLength()
    • totalCountMetaAttribute

      public static String totalCountMetaAttribute(MetaAttribute metaAttribute)
    • totalCountNullValue

      public static int totalCountNullValue()
    • totalCountMinValue

      public static int totalCountMinValue()
    • totalCountMaxValue

      public static int totalCountMaxValue()
    • totalCount

      public int totalCount()
    • checksumId

      public static int checksumId()
    • checksumSinceVersion

      public static int checksumSinceVersion()
    • checksumEncodingOffset

      public static int checksumEncodingOffset()
    • checksumEncodingLength

      public static int checksumEncodingLength()
    • checksumMetaAttribute

      public static String checksumMetaAttribute(MetaAttribute metaAttribute)
    • checksumNullValue

      public static long checksumNullValue()
    • checksumMinValue

      public static long checksumMinValue()
    • checksumMaxValue

      public static long checksumMaxValue()
    • checksum

      public long checksum()
    • snapshotChecksumId

      public static int snapshotChecksumId()
    • snapshotChecksumSinceVersion

      public static int snapshotChecksumSinceVersion()
    • snapshotChecksumEncodingOffset

      public static int snapshotChecksumEncodingOffset()
    • snapshotChecksumEncodingLength

      public static int snapshotChecksumEncodingLength()
    • snapshotChecksumMetaAttribute

      public static String snapshotChecksumMetaAttribute(MetaAttribute metaAttribute)
    • snapshotChecksumNullValue

      public static long snapshotChecksumNullValue()
    • snapshotChecksumMinValue

      public static long snapshotChecksumMinValue()
    • snapshotChecksumMaxValue

      public static long snapshotChecksumMaxValue()
    • snapshotChecksum

      public long snapshotChecksum()
    • fileBlockPositionId

      public static int fileBlockPositionId()
    • fileBlockPositionSinceVersion

      public static int fileBlockPositionSinceVersion()
    • fileBlockPositionEncodingOffset

      public static int fileBlockPositionEncodingOffset()
    • fileBlockPositionEncodingLength

      public static int fileBlockPositionEncodingLength()
    • fileBlockPositionMetaAttribute

      public static String fileBlockPositionMetaAttribute(MetaAttribute metaAttribute)
    • fileBlockPositionNullValue

      public static long fileBlockPositionNullValue()
    • fileBlockPositionMinValue

      public static long fileBlockPositionMinValue()
    • fileBlockPositionMaxValue

      public static long fileBlockPositionMaxValue()
    • fileBlockPosition

      public long fileBlockPosition()
    • totalFileSizeId

      public static int totalFileSizeId()
    • totalFileSizeSinceVersion

      public static int totalFileSizeSinceVersion()
    • totalFileSizeEncodingOffset

      public static int totalFileSizeEncodingOffset()
    • totalFileSizeEncodingLength

      public static int totalFileSizeEncodingLength()
    • totalFileSizeMetaAttribute

      public static String totalFileSizeMetaAttribute(MetaAttribute metaAttribute)
    • totalFileSizeNullValue

      public static long totalFileSizeNullValue()
    • totalFileSizeMinValue

      public static long totalFileSizeMinValue()
    • totalFileSizeMaxValue

      public static long totalFileSizeMaxValue()
    • totalFileSize

      public long totalFileSize()
    • snapshotIdId

      public static int snapshotIdId()
    • snapshotIdSinceVersion

      public static int snapshotIdSinceVersion()
    • snapshotIdCharacterEncoding

      public static String snapshotIdCharacterEncoding()
    • snapshotIdMetaAttribute

      public static String snapshotIdMetaAttribute(MetaAttribute metaAttribute)
    • snapshotIdHeaderLength

      public static int snapshotIdHeaderLength()
    • snapshotIdLength

      public int snapshotIdLength()
    • skipSnapshotId

      public int skipSnapshotId()
    • getSnapshotId

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

      public int getSnapshotId(byte[] dst, int dstOffset, int length)
    • wrapSnapshotId

      public void wrapSnapshotId(org.agrona.DirectBuffer wrapBuffer)
    • snapshotId

      public String snapshotId()
    • chunkNameId

      public static int chunkNameId()
    • chunkNameSinceVersion

      public static int chunkNameSinceVersion()
    • chunkNameCharacterEncoding

      public static String chunkNameCharacterEncoding()
    • chunkNameMetaAttribute

      public static String chunkNameMetaAttribute(MetaAttribute metaAttribute)
    • chunkNameHeaderLength

      public static int chunkNameHeaderLength()
    • chunkNameLength

      public int chunkNameLength()
    • skipChunkName

      public int skipChunkName()
    • getChunkName

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

      public int getChunkName(byte[] dst, int dstOffset, int length)
    • wrapChunkName

      public void wrapChunkName(org.agrona.DirectBuffer wrapBuffer)
    • chunkName

      public String chunkName()
    • contentId

      public static int contentId()
    • contentSinceVersion

      public static int contentSinceVersion()
    • contentMetaAttribute

      public static String contentMetaAttribute(MetaAttribute metaAttribute)
    • contentHeaderLength

      public static int contentHeaderLength()
    • contentLength

      public int contentLength()
    • skipContent

      public int skipContent()
    • getContent

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

      public int getContent(byte[] dst, int dstOffset, int length)
    • wrapContent

      public void wrapContent(org.agrona.DirectBuffer wrapBuffer)
    • 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 SnapshotChunkDecoder sbeSkip()