Package io.atomix.raft.snapshot.impl
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder builder) org.agrona.DirectBufferbuffer()longchecksum()static intstatic intstatic intstatic longstatic StringchecksumMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intstatic Stringstatic intstatic intintstatic StringchunkNameMetaAttribute(MetaAttribute metaAttribute) static intstatic intstatic intintstatic StringcontentMetaAttribute(MetaAttribute metaAttribute) static intintintgetChunkName(byte[] dst, int dstOffset, int length) intgetChunkName(org.agrona.MutableDirectBuffer dst, int dstOffset, int length) intgetContent(byte[] dst, int dstOffset, int length) intgetContent(org.agrona.MutableDirectBuffer dst, int dstOffset, int length) intgetSnapshotId(byte[] dst, int dstOffset, int length) intgetSnapshotId(org.agrona.MutableDirectBuffer dst, int dstOffset, int length) intintlimit()voidlimit(int limit) intoffset()intintintintsbeSkip()intintintintlongstatic intstatic intstatic intstatic longstatic StringsnapshotChecksumMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intstatic Stringstatic intstatic intintstatic StringsnapshotIdMetaAttribute(MetaAttribute metaAttribute) static inttoString()intstatic intstatic intstatic intstatic intstatic StringtotalCountMetaAttribute(MetaAttribute metaAttribute) static intstatic intstatic intwrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion) wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder) voidwrapChunkName(org.agrona.DirectBuffer wrapBuffer) voidwrapContent(org.agrona.DirectBuffer wrapBuffer) voidwrapSnapshotId(org.agrona.DirectBuffer wrapBuffer)
-
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
-
SnapshotChunkDecoder
public SnapshotChunkDecoder()
-
-
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.DirectBuffer buffer()- Specified by:
bufferin interfaceorg.agrona.sbe.Flyweight
-
initialOffset
public int initialOffset() -
offset
public int offset()- Specified by:
offsetin interfaceorg.agrona.sbe.Flyweight
-
wrap
public SnapshotChunkDecoder wrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion) - Specified by:
wrapin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
wrapAndApplyHeader
public SnapshotChunkDecoder wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder) -
sbeRewind
-
sbeDecodedLength
public int sbeDecodedLength()- Specified by:
sbeDecodedLengthin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
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
public int 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
public long 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
public long snapshotChecksum() -
snapshotIdId
public static int snapshotIdId() -
snapshotIdSinceVersion
public static int snapshotIdSinceVersion() -
snapshotIdCharacterEncoding
-
snapshotIdMetaAttribute
-
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
-
chunkNameId
public static int chunkNameId() -
chunkNameSinceVersion
public static int chunkNameSinceVersion() -
chunkNameCharacterEncoding
-
chunkNameMetaAttribute
-
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
-
contentId
public static int contentId() -
contentSinceVersion
public static int contentSinceVersion() -
contentMetaAttribute
-
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
-
appendTo
- Specified by:
appendToin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
sbeSkip
-