github.com/apache/beam/sdks/v2@v2.48.2/java/extensions/sbe/src/test/resources/person.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 representing a person." 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 <composite name="varStringEncoding" description="UTF-8 variable length string"> 35 <type name="length" primitiveType="uint8" /> 36 <type name="data" primitiveType="uint8" length="0" /> 37 </composite> 38 <type name="Age" primitiveType="uint8" maxValue="150" /> 39 <composite name="Address"> 40 <ref name="streetAddress" type="varStringEncoding" /> 41 <ref name="city" type="varStringEncoding" /> 42 <type name="state" primitiveType="char" length="2" /> 43 <type name="zipCode" primitiveType="char" length="5" /> 44 </composite> 45 </types> 46 <sbe:message name="Person" id="1" description="Info about a person"> 47 <field name="name" id="1" type="varStringEncoding" /> 48 <field name="age" id="2" type="Age" /> 49 <field name="address" id="3" type="Address" /> 50 </sbe:message> 51 </sbe:messageSchema>