Multiple configurations and the CSV codec
The CSV codec supports multiple configurations for interpreting separated data from different sources. A transport that is using the CSV codec can use the com.apama.iaf.plugin.ConfigurableCodec interface to set up different configurations for interpreting data from multiple sources that use different formats.
The transport can set a configuration by calling the following method on the codec:
public void addConfiguration(int sessionId,
NormalisedEvent configuration)
throws java.io.IOException
The sessionId represents the ID value for this configuration.
The normalised event should contain the following key/value pair stored as strings that will be parsed in the codec:
Key | Value |
separator | A string that contains the character to be used as the separator value, for example, "," or ";". |
The transport can remove a configuration by calling the following method:
void removeConfiguration(int sessionId) throws java.io.IOException
The sessionId represents the ID value initially used to add the configuration with the addConfiguration() method.
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.