Class MetaDecoder
java.lang.Object
io.atomix.raft.storage.serializer.MetaDecoder
- All Implemented Interfaces:
org.agrona.sbe.DecoderFlyweight,org.agrona.sbe.Flyweight,org.agrona.sbe.MessageDecoderFlyweight,org.agrona.sbe.MessageFlyweight
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintappendTo(StringBuilder builder) org.agrona.DirectBufferbuffer()longstatic intstatic intstatic intstatic longstatic StringcommitIndexMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intintintgetVotedFor(byte[] dst, int dstOffset, int length) intgetVotedFor(org.agrona.MutableDirectBuffer dst, int dstOffset, int length) longstatic intstatic intstatic intstatic longstatic StringlastFlushedIndexMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intintlimit()voidlimit(int limit) intoffset()intintintintsbeSkip()intintlongterm()static intstatic intstatic inttermId()static longstatic StringtermMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic inttoString()votedFor()static Stringstatic intstatic intintstatic StringvotedForMetaAttribute(MetaAttribute metaAttribute) static intwrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion) wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder) voidwrapVotedFor(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
-
MetaDecoder
public MetaDecoder()
-
-
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
-
offset
public int offset()- Specified by:
offsetin interfaceorg.agrona.sbe.Flyweight
-
wrap
public MetaDecoder wrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion) - Specified by:
wrapin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
wrapAndApplyHeader
public MetaDecoder wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder) -
sbeRewind
-
sbeDecodedLength
public int sbeDecodedLength()- Specified by:
sbeDecodedLengthin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
actingVersion
public int actingVersion() -
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
-
termId
public static int termId() -
termSinceVersion
public static int termSinceVersion() -
termEncodingOffset
public static int termEncodingOffset() -
termEncodingLength
public static int termEncodingLength() -
termMetaAttribute
-
termNullValue
public static long termNullValue() -
termMinValue
public static long termMinValue() -
termMaxValue
public static long termMaxValue() -
term
public long term() -
lastFlushedIndexId
public static int lastFlushedIndexId() -
lastFlushedIndexSinceVersion
public static int lastFlushedIndexSinceVersion() -
lastFlushedIndexEncodingOffset
public static int lastFlushedIndexEncodingOffset() -
lastFlushedIndexEncodingLength
public static int lastFlushedIndexEncodingLength() -
lastFlushedIndexMetaAttribute
-
lastFlushedIndexNullValue
public static long lastFlushedIndexNullValue() -
lastFlushedIndexMinValue
public static long lastFlushedIndexMinValue() -
lastFlushedIndexMaxValue
public static long lastFlushedIndexMaxValue() -
lastFlushedIndex
public long lastFlushedIndex() -
commitIndexId
public static int commitIndexId() -
commitIndexSinceVersion
public static int commitIndexSinceVersion() -
commitIndexEncodingOffset
public static int commitIndexEncodingOffset() -
commitIndexEncodingLength
public static int commitIndexEncodingLength() -
commitIndexMetaAttribute
-
commitIndexNullValue
public static long commitIndexNullValue() -
commitIndexMinValue
public static long commitIndexMinValue() -
commitIndexMaxValue
public static long commitIndexMaxValue() -
commitIndex
public long commitIndex() -
votedForId
public static int votedForId() -
votedForSinceVersion
public static int votedForSinceVersion() -
votedForCharacterEncoding
-
votedForMetaAttribute
-
votedForHeaderLength
public static int votedForHeaderLength() -
votedForLength
public int votedForLength() -
skipVotedFor
public int skipVotedFor() -
getVotedFor
public int getVotedFor(org.agrona.MutableDirectBuffer dst, int dstOffset, int length) -
getVotedFor
public int getVotedFor(byte[] dst, int dstOffset, int length) -
wrapVotedFor
public void wrapVotedFor(org.agrona.DirectBuffer wrapBuffer) -
votedFor
-
toString
-
appendTo
- Specified by:
appendToin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
sbeSkip
-