Package io.atomix.raft.snapshot.impl
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder builder) org.agrona.MutableDirectBufferbuffer()checksum(long value) static intstatic intstatic intstatic longstatic StringchecksumMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intstatic Stringstatic intstatic intstatic StringchunkNameMetaAttribute(MetaAttribute metaAttribute) static intstatic intstatic StringcontentMetaAttribute(MetaAttribute metaAttribute) intfileBlockPosition(long value) static intstatic intstatic intstatic longstatic StringfileBlockPositionMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intintlimit()voidlimit(int limit) intoffset()putChunkName(byte[] src, int srcOffset, int length) putChunkName(org.agrona.DirectBuffer src, int srcOffset, int length) putContent(byte[] src, int srcOffset, int length) putContent(org.agrona.DirectBuffer src, int srcOffset, int length) putSnapshotId(byte[] src, int srcOffset, int length) putSnapshotId(org.agrona.DirectBuffer src, int srcOffset, int length) intintintintsnapshotChecksum(long value) static intstatic intstatic intstatic longstatic StringsnapshotChecksumMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intsnapshotId(String value) static Stringstatic intstatic intstatic StringsnapshotIdMetaAttribute(MetaAttribute metaAttribute) toString()totalCount(int value) static intstatic intstatic intstatic intstatic StringtotalCountMetaAttribute(MetaAttribute metaAttribute) static intstatic intstatic inttotalFileSize(long value) static intstatic intstatic intstatic longstatic StringtotalFileSizeMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intwrap(org.agrona.MutableDirectBuffer buffer, int offset) wrapAndApplyHeader(org.agrona.MutableDirectBuffer buffer, int offset, MessageHeaderEncoder headerEncoder)
-
Field Details
-
BLOCK_LENGTH
public static final int BLOCK_LENGTH- See Also:
-
TEMPLATE_ID
public static final int TEMPLATE_ID- See Also:
-
SCHEMA_ID
public static final int SCHEMA_ID- See Also:
-
SCHEMA_VERSION
public static final int SCHEMA_VERSION- See Also:
-
SEMANTIC_VERSION
- See Also:
-
BYTE_ORDER
-
-
Constructor Details
-
SnapshotChunkEncoder
public SnapshotChunkEncoder()
-
-
Method Details
-
sbeBlockLength
public int sbeBlockLength()- Specified by:
sbeBlockLengthin interfaceorg.agrona.sbe.MessageFlyweight
-
sbeTemplateId
public int sbeTemplateId()- Specified by:
sbeTemplateIdin interfaceorg.agrona.sbe.MessageFlyweight
-
sbeSchemaId
public int sbeSchemaId()- Specified by:
sbeSchemaIdin interfaceorg.agrona.sbe.Flyweight
-
sbeSchemaVersion
public int sbeSchemaVersion()- Specified by:
sbeSchemaVersionin interfaceorg.agrona.sbe.Flyweight
-
sbeSemanticType
- Specified by:
sbeSemanticTypein interfaceorg.agrona.sbe.MessageFlyweight
-
buffer
public org.agrona.MutableDirectBuffer buffer()- Specified by:
bufferin interfaceorg.agrona.sbe.EncoderFlyweight- Specified by:
bufferin interfaceorg.agrona.sbe.Flyweight
-
offset
public int offset()- Specified by:
offsetin interfaceorg.agrona.sbe.Flyweight
-
wrap
- Specified by:
wrapin interfaceorg.agrona.sbe.EncoderFlyweight
-
wrapAndApplyHeader
public SnapshotChunkEncoder wrapAndApplyHeader(org.agrona.MutableDirectBuffer buffer, int offset, MessageHeaderEncoder headerEncoder) -
encodedLength
public int encodedLength()- Specified by:
encodedLengthin interfaceorg.agrona.sbe.Flyweight
-
limit
public int limit()- Specified by:
limitin interfaceorg.agrona.sbe.MessageFlyweight
-
limit
public void limit(int limit) - Specified by:
limitin interfaceorg.agrona.sbe.MessageFlyweight
-
totalCountId
public static int totalCountId() -
totalCountSinceVersion
public static int totalCountSinceVersion() -
totalCountEncodingOffset
public static int totalCountEncodingOffset() -
totalCountEncodingLength
public static int totalCountEncodingLength() -
totalCountMetaAttribute
-
totalCountNullValue
public static int totalCountNullValue() -
totalCountMinValue
public static int totalCountMinValue() -
totalCountMaxValue
public static int totalCountMaxValue() -
totalCount
-
checksumId
public static int checksumId() -
checksumSinceVersion
public static int checksumSinceVersion() -
checksumEncodingOffset
public static int checksumEncodingOffset() -
checksumEncodingLength
public static int checksumEncodingLength() -
checksumMetaAttribute
-
checksumNullValue
public static long checksumNullValue() -
checksumMinValue
public static long checksumMinValue() -
checksumMaxValue
public static long checksumMaxValue() -
checksum
-
snapshotChecksumId
public static int snapshotChecksumId() -
snapshotChecksumSinceVersion
public static int snapshotChecksumSinceVersion() -
snapshotChecksumEncodingOffset
public static int snapshotChecksumEncodingOffset() -
snapshotChecksumEncodingLength
public static int snapshotChecksumEncodingLength() -
snapshotChecksumMetaAttribute
-
snapshotChecksumNullValue
public static long snapshotChecksumNullValue() -
snapshotChecksumMinValue
public static long snapshotChecksumMinValue() -
snapshotChecksumMaxValue
public static long snapshotChecksumMaxValue() -
snapshotChecksum
-
fileBlockPositionId
public static int fileBlockPositionId() -
fileBlockPositionSinceVersion
public static int fileBlockPositionSinceVersion() -
fileBlockPositionEncodingOffset
public static int fileBlockPositionEncodingOffset() -
fileBlockPositionEncodingLength
public static int fileBlockPositionEncodingLength() -
fileBlockPositionMetaAttribute
-
fileBlockPositionNullValue
public static long fileBlockPositionNullValue() -
fileBlockPositionMinValue
public static long fileBlockPositionMinValue() -
fileBlockPositionMaxValue
public static long fileBlockPositionMaxValue() -
fileBlockPosition
-
totalFileSizeId
public static int totalFileSizeId() -
totalFileSizeSinceVersion
public static int totalFileSizeSinceVersion() -
totalFileSizeEncodingOffset
public static int totalFileSizeEncodingOffset() -
totalFileSizeEncodingLength
public static int totalFileSizeEncodingLength() -
totalFileSizeMetaAttribute
-
totalFileSizeNullValue
public static long totalFileSizeNullValue() -
totalFileSizeMinValue
public static long totalFileSizeMinValue() -
totalFileSizeMaxValue
public static long totalFileSizeMaxValue() -
totalFileSize
-
snapshotIdId
public static int snapshotIdId() -
snapshotIdCharacterEncoding
-
snapshotIdMetaAttribute
-
snapshotIdHeaderLength
public static int snapshotIdHeaderLength() -
putSnapshotId
-
putSnapshotId
-
snapshotId
-
chunkNameId
public static int chunkNameId() -
chunkNameCharacterEncoding
-
chunkNameMetaAttribute
-
chunkNameHeaderLength
public static int chunkNameHeaderLength() -
putChunkName
-
putChunkName
-
chunkName
-
contentId
public static int contentId() -
contentMetaAttribute
-
contentHeaderLength
public static int contentHeaderLength() -
putContent
-
putContent
-
toString
-
appendTo
-