Class WindowTimerServiceImpl
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.window.slicing.WindowTimerServiceImpl
-
- All Implemented Interfaces:
WindowTimerService<Long>
public class WindowTimerServiceImpl extends Object implements WindowTimerService<Long>
Simple Implements ofWindowTimerService.
-
-
Constructor Summary
Constructors Constructor Description WindowTimerServiceImpl(org.apache.flink.streaming.api.operators.InternalTimerService<Long> internalTimerService, java.time.ZoneId shiftTimeZone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcurrentProcessingTime()Returns the current processing time.longcurrentWatermark()Returns the current event-time watermark.java.time.ZoneIdgetShiftTimeZone()The shift timezone of the window, if the proctime or rowtime type is TIMESTAMP_LTZ, the shift timezone is the timezone user configured in TableConfig, other cases the timezone is UTC which means never shift when assigning windows.voidregisterEventTimeWindowTimer(Long window)Registers a window timer to be fired when event time watermark passes the window.voidregisterProcessingTimeWindowTimer(Long window)Registers a window timer to be fired when processing time passes the window.
-
-
-
Constructor Detail
-
WindowTimerServiceImpl
public WindowTimerServiceImpl(org.apache.flink.streaming.api.operators.InternalTimerService<Long> internalTimerService, java.time.ZoneId shiftTimeZone)
-
-
Method Detail
-
getShiftTimeZone
public java.time.ZoneId getShiftTimeZone()
Description copied from interface:WindowTimerServiceThe shift timezone of the window, if the proctime or rowtime type is TIMESTAMP_LTZ, the shift timezone is the timezone user configured in TableConfig, other cases the timezone is UTC which means never shift when assigning windows.- Specified by:
getShiftTimeZonein interfaceWindowTimerService<Long>
-
currentProcessingTime
public long currentProcessingTime()
Description copied from interface:WindowTimerServiceReturns the current processing time.- Specified by:
currentProcessingTimein interfaceWindowTimerService<Long>
-
currentWatermark
public long currentWatermark()
Description copied from interface:WindowTimerServiceReturns the current event-time watermark.- Specified by:
currentWatermarkin interfaceWindowTimerService<Long>
-
registerProcessingTimeWindowTimer
public void registerProcessingTimeWindowTimer(Long window)
Description copied from interface:WindowTimerServiceRegisters a window timer to be fired when processing time passes the window. The window you pass here will be provided when the timer fires.- Specified by:
registerProcessingTimeWindowTimerin interfaceWindowTimerService<Long>
-
registerEventTimeWindowTimer
public void registerEventTimeWindowTimer(Long window)
Description copied from interface:WindowTimerServiceRegisters a window timer to be fired when event time watermark passes the window. The window you pass here will be provided when the timer fires.- Specified by:
registerEventTimeWindowTimerin interfaceWindowTimerService<Long>
-
-