Class SnapshotChunkEncoder

java.lang.Object
io.atomix.raft.snapshot.impl.SnapshotChunkEncoder
All Implemented Interfaces:
org.agrona.sbe.EncoderFlyweight, org.agrona.sbe.Flyweight, org.agrona.sbe.MessageEncoderFlyweight, org.agrona.sbe.MessageFlyweight

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

  • Constructor Details

    • SnapshotChunkEncoder

      public SnapshotChunkEncoder()
  • 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 SnapshotChunkEncoder wrap(org.agrona.MutableDirectBuffer buffer, int offset)
      Specified by:
      wrap in interface org.agrona.sbe.EncoderFlyweight
    • wrapAndApplyHeader

      public SnapshotChunkEncoder 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
    • 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 SnapshotChunkEncoder totalCount(int value)
    • 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 SnapshotChunkEncoder checksum(long value)
    • 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 SnapshotChunkEncoder snapshotChecksum(long value)
    • 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 SnapshotChunkEncoder fileBlockPosition(long value)
    • 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 SnapshotChunkEncoder totalFileSize(long value)
    • snapshotIdId

      public static int snapshotIdId()
    • snapshotIdCharacterEncoding

      public static String snapshotIdCharacterEncoding()
    • snapshotIdMetaAttribute

      public static String snapshotIdMetaAttribute(MetaAttribute metaAttribute)
    • snapshotIdHeaderLength

      public static int snapshotIdHeaderLength()
    • putSnapshotId

      public SnapshotChunkEncoder putSnapshotId(org.agrona.DirectBuffer src, int srcOffset, int length)
    • putSnapshotId

      public SnapshotChunkEncoder putSnapshotId(byte[] src, int srcOffset, int length)
    • snapshotId

      public SnapshotChunkEncoder snapshotId(String value)
    • chunkNameId

      public static int chunkNameId()
    • chunkNameCharacterEncoding

      public static String chunkNameCharacterEncoding()
    • chunkNameMetaAttribute

      public static String chunkNameMetaAttribute(MetaAttribute metaAttribute)
    • chunkNameHeaderLength

      public static int chunkNameHeaderLength()
    • putChunkName

      public SnapshotChunkEncoder putChunkName(org.agrona.DirectBuffer src, int srcOffset, int length)
    • putChunkName

      public SnapshotChunkEncoder putChunkName(byte[] src, int srcOffset, int length)
    • chunkName

      public SnapshotChunkEncoder chunkName(String value)
    • contentId

      public static int contentId()
    • contentMetaAttribute

      public static String contentMetaAttribute(MetaAttribute metaAttribute)
    • contentHeaderLength

      public static int contentHeaderLength()
    • putContent

      public SnapshotChunkEncoder putContent(org.agrona.DirectBuffer src, int srcOffset, int length)
    • putContent

      public SnapshotChunkEncoder putContent(byte[] src, int srcOffset, int length)
    • toString

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

      public StringBuilder appendTo(StringBuilder builder)