KIP-251 — Allow timestamp manipulation in Processor API
Accepted Kafka 2.0 Streams
Adds a ProcessorContext#setTimestamp() method to the Streams Processor API, allowing processors to override the timestamp that will be used for output records and punctuation scheduling. Without this, the timestamp of output records is always inherited from the input record, making it impossible to implement custom timestamp semantics like event-time enrichment or timestamp correction in the low-level API.
Details
| Author | Matthias J. Sax |
| Status | Accepted |
| Kafka Version | 2.0 |
| JIRA | KAFKA-6454 |
| Wiki | View on Apache Wiki |
| Created | 2018-01-31 |
| Last Modified | 2019-07-31 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.