Parser Overrides

Parser Overrides are used to override the default parsing behavior of the DLC.

Parser Overrides currently only work with CSV files. This is a global configuration which will affect which CsvColumnParser’s are added to the channel.

The DLC will implicitly try to match input columns to datastore table fields with the same name. The data type of the table field is implicitly used for the parser type.

If you need more granular control of the parsers for a CSV topic, you can explicitly add the CsvColumnParser column calculator to the channel as a Custom Field.

Java Configuration

ParserOverridesDescription Spring Beans are picked up as configurations for the DLC.

Example

@Bean
ParserOverridesDescription columnParsingOverrides() {
    return ParserOverridesDescription.builder()
            .parserOverride(StoreFieldNames.MATURITY, STRING)
            .parserOverride(StoreFieldNames.SCENARIO_IDS, INT_ARRAY)
            .parserOverride(StoreFieldNames.PROFIT_AND_LOSS, DOUBLE_ARRAY)
            .parserOverride(StoreFieldNames.PV, DOUBLE_ARRAY)
            .parserOverride(StoreFieldNames.SENSITIVITY, DOUBLE_ARRAY)
            .build();
}