This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement SBE serialization of ABS message types.
- Loading branch information
1 parent
29ab5a9
commit 7fe4745
Showing
33 changed files
with
3,578 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<sbe:messageSchema xmlns:sbe="http://fixprotocol.io/2016/sbe" | ||
package="onyx.serialization" | ||
id="1" | ||
version="0" | ||
semanticVersion="5.2" | ||
description="Example schema" | ||
byteOrder="littleEndian"> | ||
<types> | ||
<composite name="messageHeader" description="Message identifiers and length of message root"> | ||
<type name="blockLength" primitiveType="uint16"/> | ||
<type name="templateId" primitiveType="uint16"/> | ||
<type name="schemaId" primitiveType="uint16"/> | ||
<type name="version" primitiveType="uint16"/> | ||
</composite> | ||
<composite name="groupSizeEncoding" description="Repeating group dimensions"> | ||
<type name="blockLength" primitiveType="uint16"/> | ||
<type name="numInGroup" primitiveType="uint16"/> | ||
</composite> | ||
<composite name="varDataEncoding"> | ||
<type name="length" primitiveType="uint32" maxValue="1073741824"/> | ||
<type name="varData" primitiveType="int8"/> | ||
</composite> | ||
<composite name="keyValueEncoding"> | ||
<type name="length" primitiveType="uint16" maxValue="65534"/> | ||
<type name="varData" primitiveType="int8"/> | ||
</composite> | ||
<composite name="valueValueEncoding"> | ||
<type name="length" primitiveType="uint16" maxValue="65534"/> | ||
<type name="varData" primitiveType="int8"/> | ||
</composite> | ||
</types> | ||
<sbe:message name="Message" id="1" description="OnyxMessages"> | ||
<field name="replicaVersion" id="2" type="uint64"/> | ||
<field name="destId" id="3" type="uint16"/> | ||
<group name="segments" id="4" dimensionType="groupSizeEncoding"> | ||
<data name="segmentBytes" id="5" type="varDataEncoding"/> | ||
</group> | ||
</sbe:message> | ||
<sbe:message name="Barrier" id="15" description="Barrier"> | ||
<field name="replicaVersion" id="16" type="uint64"/> | ||
<field name="epoch" id="17" type="uint64"/> | ||
<field name="destId" id="18" type="uint16"/> | ||
<data name="payloadBytes" id="19" type="varDataEncoding"/> | ||
</sbe:message> | ||
<sbe:message name="DynamicMap" id="25" description="OnyxMap"> | ||
<field name="keyType" id="26" type="int8"/> | ||
<field name="valueType" id="27" type="int8"/> | ||
<data name="key" id="28" type="keyValueEncoding"/> | ||
<data name="value" id="29" type="valueValueEncoding"/> | ||
</sbe:message> | ||
</sbe:messageSchema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
curl -o sbe-all.jar -L "http://search.maven.org/remotecontent?filepath=uk/co/real-logic/sbe-all/1.5.5/sbe-all-1.5.5.jar" | ||
java -jar sbe-all.jar resources/onyx-schema.xml |
Oops, something went wrong.