github.com/apache/beam/sdks/v2@v2.48.2/java/extensions/sbe/src/test/resources/only-primitives-multi-message.xml (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <!--
     3      Licensed to the Apache Software Foundation (ASF) under one or more
     4      contributor license agreements.  See the NOTICE file distributed with
     5      this work for additional information regarding copyright ownership.
     6      The ASF licenses this file to You under the Apache License, Version 2.0
     7      (the "License"); you may not use this file except in compliance with
     8      the License.  You may obtain a copy of the License at
     9         http://www.apache.org/licenses/LICENSE-2.0
    10      Unless required by applicable law or agreed to in writing, software
    11      distributed under the License is distributed on an "AS IS" BASIS,
    12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13      See the License for the specific language governing permissions and
    14      limitations under the License.
    15  -->
    16  <sbe:messageSchema xmlns:sbe="http://fixprotocol.io/2016/sbe"
    17      xmlns:xi="http://www.w3.org/2001/XInclude"
    18      package="baseline"
    19      id="1"
    20      version="0"
    21      semanticVersion="5.2"
    22      description="Schema with multiple messages that each only contains SBE primitives"
    23      byteOrder="littleEndian">
    24    <types>
    25      <!-- Message header copied from standard at https://www.fixtrading.org/standards/sbe-online/ -->
    26      <composite name="messageHeader" description="Template ID and length of message root">
    27        <type name="blockLength" primitiveType="uint16"/>
    28        <type name="templateId" primitiveType="uint16"/>
    29        <type name="schemaId" primitiveType="uint16"/>
    30        <type name="version" primitiveType="uint16"/>
    31        <type name="numGroups" primitiveType="uint16" />
    32        <type name="numVarDataFields" primitiveType="uint16" />
    33      </composite>
    34    </types>
    35    <sbe:message name="Primitives1" id="1">
    36      <field name="int32Primitive" id="1" type="int32" />
    37      <field name="uint32Primitive" id="2" type="uint32" presence="optional" />
    38      <field name="doublePrimitive" id="3" type="double" />
    39    </sbe:message>
    40    <sbe:message name="Primitives2" id="2">
    41      <field name="int16Primitive" id="1" type="int16" />
    42      <field name="uint16Primitive" id="2" type="uint16" />
    43      <field name="floatPrimitive" id="3" type="float" presence="optional" />
    44    </sbe:message>
    45  </sbe:messageSchema>