streamMap

The streamMap element contains the mappings between the columns of an Event Stream Processor source stream and the RMDS FIDs being subscribed to by the adapter.

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

streamMaps

Children

The following child elements are defined for streamMap. These child elements can occur in any order, but for a specific streamMap, the order of the child elements must mirror the order of the columns of the source stream (as defined in the project). This is how the adapter is configured to deliver RMDS updates to the appropriate rows in the source stream.

Name Requirement
dataField One required, two or more supported
dateTimeField Zero or more supported
itemName One required, two or more supported
itemStale Zero or one supported
sequenceNumber Zero or one supported
serviceName Zero or one supported

Attributes

Name Description Requirement
name References the source stream to which the RMDS updates are mapped. Must match the name of a source stream defined in the Event Stream Processor project. Required
opcode Defines the operation the adapter performs when sending updates to the source stream. Possible values are insert and upsert. The insert operation adds new updates to the end of the source stream. The upsert operation replaces an existing source stream entry if its key matches the entry's key; if not, the update is added. Optional (default value is upsert)

Notes

None

Example

<streamMaps>
        <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>
</streamMaps>

This example maps a set of the adapter's updates to an Event Stream Processor source stream named stream1. All updates going to this source stream are added using the upsert mode. The RICs for which updates are sent to this source stream are specified in an itemList elsewhere in the map file that also references stream1.