Attaches an input or output adapter to an data stream.
name |
A name for this instance of the adapter. |
type |
The adapter type, identifying the adapter. See "Adapters Supplied by Sybase CEP" in the Sybase CEP Integration Guide for more information about valid adapter types. |
stream |
The name of the stream. |
prop |
The name of a property for the specified adapter type. See the section for the specific adapter type in the Sybase CEP Integration Guide for more information about the properties available for the adapter. |
value |
The value for the specified property. |
The Attach Adapter statement attaches an input or output adapter to the specified data stream in the current query module or submodule. Adapters can also be attached using the Sybase CEP Studio interface (see the Sybase CEP Studio Guide for more information), which inserts the Attach Adapter statement for you. Input adapters can only be attached to input streams, but output adapters can be attached to all types of streams.
The optional property names must match the adapter property names from the adapter's .adl file. Adapter property names are not case sensitive, and allow the arbitrary insertions of spaces inside the name of the property.
For more information about adapter properties and Adapter Definition Language .adl files, see the appropriate adapter section in the Sybase CEP Integration Guide .
The type must be a defined adapter type. See "Adapters Supplied by Sybase CEP" in the Sybase CEP Integration Guide for more information about adapter types.
Adapter property names must match the properties from the adapter's .adl file.
Input adapters can only be attached to input data streams.
Create Stream Statement
ATTACH INPUT ADAPTER AdapterReadReaders TYPE ReadFromCsvFileAdapterType TO STREAM InStreamReaders PROPERTIES FILENAME = "examples/RfidAndSensorNetworks/ParentChildrenTracking/ data/rfid-readers.csv", LOOPCOUNT = "1", USECURRENTTIMESTAMP = "Yes", TITLEROW = "TRUE";