3 Structure Examples

The following is an example of the knowledge data structure serialized in the XML format.

Knowledge in this example contains only a scope clock vector; it does not contain any range overrides, item overrides, or change unit overrides.

 <syncKnowledge xmlns="http://schemas.microsoft.com/2008/03/sync/" xmlns:sync="http://schemas.microsoft.com/2008/03/sync/">
   <idFormatGroup>
     <replicaIdFormat sync:isVariable="false" sync:maxLength="16" />
     <itemIdFormat sync:isVariable="false" sync:maxLength="24"/>
     <changeUnitIdFormat sync:isVariable="false" sync:maxLength="1" />
   </idFormatGroup>
   <replicaKeyMap>
     <replicaKeyMapEntry sync:replicaId="zaun9erpTKCRxvHzTngj4w==" sync:replicaKey="0" />
     <replicaKeyMapEntry sync:replicaId="71J30mgqQ6K/wjnSqEIKYg==" sync:replicaKey="1" />
     <replicaKeyMapEntry sync:replicaId="nQh3j4ExQluKail5dm1YaA==" sync:replicaKey="2" />
   </replicaKeyMap>
   <clockVector>
     <clockVectorElement sync:replicaKey="0" sync:tickCount="10" />
     <clockVectorElement sync:replicaKey="2" sync:tickCount="20" />
   </clockVector>
 </syncKnowledge>

The following is another example of the knowledge data structure serialized in the XML format.

Knowledge in this example contains a scope clock vector, one range override, two item overrides, and three change unit overrides.

 <syncKnowledge xmlns="http://schemas.microsoft.com/2008/03/sync/" xmlns:sync="http://schemas.microsoft.com/2008/03/sync/">
   <idFormatGroup>
     <replicaIdFormat sync:isVariable="false" sync:maxLength="16" />
     <itemIdFormat sync:isVariable="false" sync:maxLength="24"/>
     <changeUnitIdFormat sync:isVariable="false" sync:maxLength="1" />
   </idFormatGroup>
   <replicaKeyMap>
     <replicaKeyMapEntry sync:replicaId="zaun9erpTKCRxvHzTngj4w==" sync:replicaKey="0" />
     <replicaKeyMapEntry sync:replicaId="71J30mgqQ6K/wjnSqEIKYg==" sync:replicaKey="1" />
   </replicaKeyMap>
   <clockVector>
     <clockVectorElement sync:replicaKey="0" sync:tickCount="10" />
     <clockVectorElement sync:replicaKey="2" sync:tickCount="20" />
   </clockVector>
   <itemOverrides>
     <itemOverride sync:itemId="AAAAAAAAAAARVFBb7zBEmJCiSPPioeuL">
       <clockVector>
         <clockVectorElement sync:replicaKey="0" sync:tickCount="5" />
         <clockVectorElement sync:replicaKey="1" sync:tickCount="5" />
       </clockVector>
     </itemOverride>
     <itemOverride sync:itemId="AAAAAAAAB9AiNPqZB/pB7p3TXWo3VrZ0">
       <clockVector>
         <clockVectorElement sync:replicaKey="0" sync:tickCount="6" />
         <clockVectorElement sync:replicaKey="1" sync:tickCount="4" />
       </clockVector>
     </itemOverride>
   </itemOverrides>
   <changeUnitOverrides>
     <changeUnitOverride sync:itemId="AAAAAAAAB9Ddesz1YFtE9r8QN7JEg4ZQ" sync:changeUnitId="FA==">
       <clockVector>
         <clockVectorElement sync:replicaKey="0" sync:tickCount="15" />
         <clockVectorElement sync:replicaKey="1" sync:tickCount="2" />
       </clockVector>
     </changeUnitOverride>
     <changeUnitOverride sync:itemId="AAAAAAAAD6AXfz97akZByL01Lj96GlFL" sync:changeUnitId="KA==">
       <clockVector>
         <clockVectorElement sync:replicaKey="0" sync:tickCount="16" />
         <clockVectorElement sync:replicaKey="1" sync:tickCount="12" />
       </clockVector>
     </changeUnitOverride>
     <changeUnitOverride sync:itemId="AAAAAAAAAADUaRgYm21PjIEqSfh+SI1/" sync:changeUnitId="AA==">
       <clockVector>
         <clockVectorElement sync:replicaKey="0" sync:tickCount="17" />
         <clockVectorElement sync:replicaKey="1" sync:tickCount="22" />
       </clockVector>
     </changeUnitOverride>
   </changeUnitOverrides>
   <rangeOverrides>
     <rangeOverride sync:closedLowerBound="AAAAAAAAAGTIXlJ1VXBP2Kqk6mGiuwvL" sync:closedUpperBound="AAAAAAAAAMjIXlJ1VXBP2Kqk6mGiuwvL">
       <clockVector>
         <clockVectorElement sync:replicaKey="0" sync:tickCount="18" />
         <clockVectorElement sync:replicaKey="1" sync:tickCount="28" />
       </clockVector>
     </rangeOverride>
   </rangeOverrides>
 </syncKnowledge>