Navigation :
CSV Topic
Configuration Properties
Properties for a CSV Topic are defined by name in the dlc.csv.topics namespace,
and are picked up as configurations for the DLC.
| Key |
Required |
Type |
Default |
Description |
| file-pattern |
|
String |
|
Path matcher. |
| parser |
|
CsvParserProperties |
Default Parser Properties. |
CSV Parser Properties |
| channels |
|
Set<Channel> |
A channel is created using the topic’s name as the name of the target. |
Channels. |
| restrict-to-sources |
|
Set<String> |
|
Sources to which the topic is restricted. |
| restrict-from-sources |
|
Set<String> |
|
Sources from which the topic restricted. |
YAML Example
dlc:
csv:
topics:
Trades:
file-pattern: trades*.csv
JSON Example
CSV Topics can also be provided as an override in a DLC LOAD request.
{
"Trades": {
"filePattern": "different_than_trades*.csv"
}
}
Java Configuration
CsvTopicDescription Spring Beans are picked up as configurations for the DLC.
| Parameter |
Required |
Type |
Default |
Description |
| name |
Y |
String |
|
Name of the topic. |
| filePattern |
|
String |
|
Path matcher. |
| parser |
|
CsvParserDescription |
Default Parser Description |
CSV Parser Description. |
| channels |
|
Set<ChannelDescription> |
A channel is created using the topic’s name as the name of the target |
Channel Descriptions which belong to the topic. |
| restrictToSources |
|
Set<String> |
|
Sources to which topic is restricted. |
| restrictFromSources |
|
Set<String> |
|
Sources from which topic is restricted. |
Java Example
@Bean
public CsvTopicDescription tradesTopic() {
return CsvTopicDescription.builder("Trades", "trades*.csv")
.build();
}