Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0
-
None
Description
I suggest to add an interface that UDFs can implement, which will let them be notified upon watermark updates.
Example usage:
public interface EventTimeFunction { void onWatermark(Watermark watermark); } public class MyMapper implements MapFunction<String, String>, EventTimeFunction { private long currentEventTime = Long.MIN_VALUE; public String map(String value) { return value + " @ " + currentEventTime; } public void onWatermark(Watermark watermark) { currentEventTime = watermark.getTimestamp(); } }
Attachments
Issue Links
1.
|
Refactorings around FLINK-3674 (User Function Timers) | Resolved | Unassigned |