In the streamMap definition, the updateNumber element maps a column in the 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) | |----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)
streamMap
None
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 |
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 updateNumber element.
<Column datatype="integer" name="Id"/>This line specifies a unique ID for the source stream. The updateNumber 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="stream1"> <itemName key="true"/> <FIDListField /> <!-- serviceName / --> <updateNumber /> <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 update number provided by the adapter. This column is also identified as part of the source stream's unique key.