Class MetaEncoder
java.lang.Object
io.atomix.raft.storage.serializer.MetaEncoder
- All Implemented Interfaces:
org.agrona.sbe.EncoderFlyweight,org.agrona.sbe.Flyweight,org.agrona.sbe.MessageEncoderFlyweight,org.agrona.sbe.MessageFlyweight
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final ByteOrderstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder builder) org.agrona.MutableDirectBufferbuffer()intintlastWrittenIndex(long value) static intstatic intstatic intstatic longstatic StringlastWrittenIndexMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intintlimit()voidlimit(int limit) intoffset()putVotedFor(byte[] src, int srcOffset, int length) putVotedFor(org.agrona.DirectBuffer src, int srcOffset, int length) intintintintterm(long value) static intstatic intstatic inttermId()static longstatic StringtermMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic inttoString()static Stringstatic intstatic intstatic StringvotedForMetaAttribute(MetaAttribute metaAttribute) wrap(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:
-
BYTE_ORDER
-
-
Constructor Details
-
MetaEncoder
public MetaEncoder()
-
-
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
-
initialOffset
public int initialOffset() -
offset
public int offset()- Specified by:
offsetin interfaceorg.agrona.sbe.Flyweight
-
wrap
- Specified by:
wrapin interfaceorg.agrona.sbe.EncoderFlyweight
-
wrapAndApplyHeader
public MetaEncoder 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
-
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
-
lastWrittenIndexId
public static int lastWrittenIndexId() -
lastWrittenIndexSinceVersion
public static int lastWrittenIndexSinceVersion() -
lastWrittenIndexEncodingOffset
public static int lastWrittenIndexEncodingOffset() -
lastWrittenIndexEncodingLength
public static int lastWrittenIndexEncodingLength() -
lastWrittenIndexMetaAttribute
-
lastWrittenIndexNullValue
public static long lastWrittenIndexNullValue() -
lastWrittenIndexMinValue
public static long lastWrittenIndexMinValue() -
lastWrittenIndexMaxValue
public static long lastWrittenIndexMaxValue() -
lastWrittenIndex
-
votedForId
public static int votedForId() -
votedForCharacterEncoding
-
votedForMetaAttribute
-
votedForHeaderLength
public static int votedForHeaderLength() -
putVotedFor
-
putVotedFor
-
votedFor
-
toString
-
appendTo
-