Parquet Loading Topic

Configuration Properties

Properties for a Parquet Loading Topic are defined by name in the dlc.parquet.topics namespace, and are picked up as configurations for the DLC.

Key Required Type Default Description
file-pattern String Path matcher.
columns List<String> Columns will implicitly come from the store which is being published to. Column of the file. You must specify all column names. The ones that do not correspond to a matching column in the datastore are skipped.
source-store-mapping Map<String, String> Ordered map of fields in the record from the remote topic or queue
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. See source to topic matching.
restrict-from-sources Set<String> Sources from which the topic restricted. See source to topic matching.

YAML Example

This configuration does not specify a target for the data or the data format.

note

If you do not name your topic the same as your store you will have to explicitly specify the target in the channel of the topic.

  • The target is implicitly the Atoti table named “Trades”.
  • The format implicitly comes from the columns of the Atoti table.
dlc:
  parquet:
    topics:
      Trades:
        file-pattern: glob:trades*.parquet

Java Configuration

ParquetTopicDescription 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.
columns List<String> Columns will implicitly come from the store which is being published to. Column of the file. You must specify all column names. The ones that do not correspond to a matching column in the datastore are skipped.
sourceStoreMapping Map<String, String> Ordered map of fields in the record from the remote topic or queue
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. See source to topic matching.
restrictFromSources Set<String> Sources from which topic is restricted. See source to topic matching.

Java Example

This configuration does not specify a target for the data or the data format.

note

If you do not name your topic the same as your store you will have to explicitly specify the target in the channel of the topic.

  • The target is implicitly the Atoti table named “Trades”.
  • The format implicitly comes from the columns of the Atoti table.
@Bean
public ParquetTopicDescription tradesTopic() {
    return ParquetTopicDescription.builder("Trades", "glob:trades*.parquet")
            .build();
}