Class WindowTimerServiceBase<W>
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.window.tvf.common.WindowTimerServiceBase<W>
-
- All Implemented Interfaces:
WindowTimerService<W>
- Direct Known Subclasses:
SlicingWindowTimerServiceImpl,UnslicingWindowTimerServiceImpl
public abstract class WindowTimerServiceBase<W> extends Object implements WindowTimerService<W>
A base implement ofWindowTimerService.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.streaming.api.operators.InternalTimerService<W>internalTimerServiceprotected java.time.ZoneIdshiftTimeZone
-
Constructor Summary
Constructors Constructor Description WindowTimerServiceBase(org.apache.flink.streaming.api.operators.InternalTimerService<W> 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.runtime.operators.window.tvf.common.WindowTimerService
registerEventTimeWindowTimer, registerProcessingTimeWindowTimer
-
-
-
-
Field Detail
-
internalTimerService
protected final org.apache.flink.streaming.api.operators.InternalTimerService<W> internalTimerService
-
shiftTimeZone
protected final java.time.ZoneId shiftTimeZone
-
-
Constructor Detail
-
WindowTimerServiceBase
public WindowTimerServiceBase(org.apache.flink.streaming.api.operators.InternalTimerService<W> 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<W>
-
currentProcessingTime
public long currentProcessingTime()
Description copied from interface:WindowTimerServiceReturns the current processing time.- Specified by:
currentProcessingTimein interfaceWindowTimerService<W>
-
currentWatermark
public long currentWatermark()
Description copied from interface:WindowTimerServiceReturns the current event-time watermark.- Specified by:
currentWatermarkin interfaceWindowTimerService<W>
-
-