Skip to main content
The root directory is set through the root-base-dir property, which supports scope parameter placeholders. The DLC ensures that only files within that source can be loaded.

Configuration properties

Properties for a Local CSV Source are defined by name in the dlc.csv.local.sources namespace, and are picked up as configurations for the DLC.
KeyRequiredTypeDescription
root-base-dirYStringRoot base directory. Can include Scope Parameters.
Example #{SCOPE_PARAM}
source-propertiesCsvSourceConfigurationPropertiesCSV Source Configuration
topics-to-includeSet<String>Topics to include. See source to topic matching.
topics-to-excludeSet<String>Topics to exclude. See source to topic matching.
accepts-topic-overridesBooleanWhether this source is allowed to accept Topic Overrides in the Load Request.

YAML example

dlc:
  csv:
    local:
      sources:
        localCsvSource:
          root-base-dir: data
        datedSource:
          root-base-dir: data/#{AS_OF_DATE}

Java configuration

LocalCsvSourceDescription Spring Beans are picked up as configurations for the DLC.
ParameterRequiredTypeDescription
nameYStringName of the source.
rootBaseDirYStringRoot base directory.
sourceConfigurationCsvSourceConfigurationCSV Source Configuration
topicsToIncludeSet<String>Topics to include. See source to topic matching.
topicsToExcludeSet<String>Topics to exclude. See source to topic matching.
acceptsTopicOverridesBooleanWhether this source is allowed to accept Topic Overrides in the Load Request.

Java example

@Bean
LocalCsvSourceDescription source() {
    return LocalCsvSourceDescription.builder("localCsvSource", "data")
            .build();
}

@Bean
LocalCsvSourceDescription datedSource() {
    return LocalCsvSourceDescription.builder("datedSource", "data/#{AS_OF_DATE}")
            .build();
}