Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Standard IAF Plug-ins | Codec IAF Plug-ins | The Fixed Width codec IAF plug-in | Decoding fixed width data from the sink to send to the correlator
Decoding fixed width data from the sink to send to the correlator
To decode an event into a sequence of fields, the transport calls the sendTransportEvent() method as follows:
public void sendTransportEvent(Object event, TimestampSet timestamps)
   throws CodecException, SemanticMapperException
The event object is assumed to be a NormalisedEvent. It must contain the key data, which has a value of string type containing the data to decode. That is, the line that contains the fixed width data. The Fixed Width codec then decodes the data and stores the value from each field in a string sequence. This value from each field replaces the value for the data key.
If the event also contains a sessionId key with an integer value associated with it, this is the configuration that the codec uses to interpret the data. If the event does not contain a sessionId the codec uses the default configuration as specified in the configuration file.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.