Package uk.co.real_logic.sbe.ir
Class Encoding
java.lang.Object
uk.co.real_logic.sbe.ir.Encoding
Optional encoding settings that can be associated with
Tokens.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder to makeEncodingeasier to create.static enumIndicates the presence status of a primitive encoded field in a message. -
Method Summary
Modifier and TypeMethodDescriptionThe most applicable max value for the encoded type.The most applicable min value for the encoded type.The most applicable null value for the encoded type.TheByteOrderfor this encoding.The character encoding for the token or null if not set.The constant value for the token or null if not set.epoch()The epoch from which a timestamp is offset.maxValue()The max value for the token or null if not set.minValue()The min value for the token or null if not set.The null value for the token or null if not set.presence()Indicates the presence status of a field in a message.voidpresence(Encoding.Presence presence) Set theEncoding.Presencefor this encoding.ThePrimitiveTypeof this encoding.The semantic type of encoding value which can have relevance to the application layer.timeUnit()The time unit of the timestamp.toString()
-
Method Details
-
primitiveType
ThePrimitiveTypeof this encoding.- Returns:
- the
PrimitiveTypeof this encoding.
-
byteOrder
TheByteOrderfor this encoding.- Returns:
- the
ByteOrderfor this encoding.
-
minValue
The min value for the token or null if not set.- Returns:
- the minValue for the token or null if not set.
-
maxValue
The max value for the token or null if not set.- Returns:
- the maxValue for the token or null if not set.
-
nullValue
The null value for the token or null if not set.- Returns:
- the nullValue for the token or null if not set.
-
constValue
The constant value for the token or null if not set.- Returns:
- the constant value for the token or null if not set.
-
presence
Indicates the presence status of a field in a message.- Returns:
- indicates the presence status of a field in a message.
-
presence
Set theEncoding.Presencefor this encoding.- Parameters:
presence- theEncoding.Presencefor this encoding.
-
applicableNullValue
The most applicable null value for the encoded type.- Returns:
- most applicable null value for the encoded type.
-
applicableMinValue
The most applicable min value for the encoded type.- Returns:
- most applicable min value for the encoded type.
-
applicableMaxValue
The most applicable max value for the encoded type.- Returns:
- most applicable max value for the encoded type.
-
characterEncoding
The character encoding for the token or null if not set.- Returns:
- the character encoding for the token or null if not set.
-
epoch
The epoch from which a timestamp is offset. The default is "unix".- Returns:
- the epoch from which a timestamp is offset.
-
timeUnit
The time unit of the timestamp.- Returns:
- the time unit of the timestamp.
-
semanticType
The semantic type of encoding value which can have relevance to the application layer.- Returns:
- semantic type of encoding value which can have relevance to the application layer.
-
toString
-