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 Avro Source are defined by name in the dlc.avro.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}
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:
  avro:
    local:
      sources:
        localAvroSource:
          root-base-dir: data
        datedSource:
          root-base-dir: data/#{AS_OF_DATE}

Java configuration

LocalAvroSourceDescription Spring Beans are picked up as configurations for the DLC.
ParameterRequiredTypeDescription
nameYStringName of the source.
rootBaseDirYStringRoot base directory.
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
LocalAvroSourceDescription source() {
    return LocalAvroSourceDescription.builder("localAvroSource", "data")
            .build();
}

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