In the streamMap definition, the sequenceNumber element maps a column in Event Stream Processor source stream that is populated by a unique number generated by the adapter, not provided as part of the data from RMDS.
adapter (required, limit one) |----publication (required, limit one) |----streamMaps (required, limit one) | '----streamMap (required) | |----dataField (required) | |----hiResTimestampField (optional) | |----imageField (required for L2 data) | |----itemName (required, limit one) | |----itemStale (optional) | |----marketByOrderKeyField (required) | |----marketByPriceKeyField (required) | |----marketMakerKeyField (required) | |----nullField (optional) | |----respTypeNumField (optional) | |----sequenceNumber (optional) | |----serviceName (optional) | '----updateNumber (optional) |----rfa (required, limit one) '----itemLists (required, limit one) '----itemList (required) '----item (optional)
streamMap
None
Name | Description | Requirement |
---|---|---|
key | true or false, depending on whether this column is part of the source stream's unique key | See Note |
name | a string that appears in log entries | Optional |
The adapter maintains a separate counter for each RIC to which it is subscribed. Each time it receives an update for an RIC, it increments its counter for that RIC. This number is the one sent to the source stream column mapped by the sequenceNumber element.
<Column datatype="long" 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 attribute.
<streamMap name="marketByOrderStream"> <itemName key="true"/> <!-- 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.