sequenceNumber

In the streamMap definition, the sequenceNumber element maps a column in the source stream that is populated by a unique number generated by the adapter, not provided as part of the data from RMDS.

Summary

adapter                   (required, limit one)
  |----publication                   (required, limit one)
  |----streamMaps                    (required, limit one)
  |      '----streamMap              (required)
  |             |----itemName        (required, limit one)
  |             |----serviceName     (optional)
  |             |----sequenceNumber  (optional)
  |             |----itemStale       (optional)
  |             |----dataField       (required)
  |             |----updateNumber    (required)
  |             |----dateTimeField   (optional)
  |             |----FIDListField    (optional)
  |             '----nullField       (optional)
  |----recordTypeMap                 (optional)
  |      '----recordType             (optional)
  |----rfa                           (required, limit one)
  '----itemLists                     (required, limit one)
         '----itemList               (required)
                '----item            (optional)

Parent

streamMap

Children

None

Attributes

Name Description Requirement
key True or false, depending on whether this column is part of the source stream's unique key See Notes
name A string that appears in log entries Optional

Notes

The adapter maintains a separate counter for each RIC to which it is subscribed. Each time it receives an update for a RIC, it increments the counter for that RIC. This number is the one sent to the source stream column mapped by the sequenceNumber element.

Many source stream definitions include a column specification similar to:
<Column datatype="int32" name="Id"/>
This line specifies a unique ID for the source stream. The sequenceNumber pseudo field is a good match for this column in the input adapter map file

You must use the key attribute to set the value to true. If this column is not part of the stream's key, you can omit this.

Example

<streamMap name="stream1">
        <itemName key="true"/>
        <FIDListField />
        <!-- serviceName / -->
        <sequenceNumber />
        <itemStale/>
        <dataField name="BID"/>
        <dataField name="ASK"/>
        <dataField name="TRDPRC_1"/>
        <dataField name="ACVOL_1"/>
        <dateTimeField timeName="TIMACT" dateName="ACTIV_DATE"/>
</streamMap>

The third column of the source stream is mapped to the sequence number provided by the adapter. This column is also identified as part of the source stream's unique key.