Important
You are viewing documentation for an older version of Confluent Platform. For the latest, click here.
TimestampRouter¶
Description¶
Update the record’s topic field as a function of the original topic value and the record timestamp.
This is useful for sink connectors, because the topic field is often used to determine the equivalent entity name in the destination system(e.g. database table or search index name).
Properties¶
Name | Description | Type | Default | Valid Values | Importance |
---|---|---|---|---|---|
timestamp.format |
Format string for the timestamp that is compatible with java.text.SimpleDateFormat . |
string | yyyyMMdd | high | |
topic.format |
Format string which can contain ${topic} and ${timestamp} as placeholders for the topic and timestamp, respectively. |
string | ${topic}-${timestamp} |
high |