Package org.apache.flink.table.functions
Interface ProcessTableFunction.OnTimerContext
- All Superinterfaces:
ProcessTableFunction.Context
- Enclosing class:
- ProcessTableFunction<T>
@PublicEvolving
public static interface ProcessTableFunction.OnTimerContext
extends ProcessTableFunction.Context
Special
ProcessTableFunction.Context that is available when the onTimer() method is called.-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the timer currently being fired, if the timer is a named timer (i.e.Methods inherited from interface org.apache.flink.table.functions.ProcessTableFunction.Context
clearAll, clearAllState, clearAllTimers, clearState, getChangelogMode, tableSemanticsFor, timeContext
-
Method Details
-
currentTimer
String currentTimer()Returns the name of the timer currently being fired, if the timer is a named timer (i.e. registered usingProcessTableFunction.TimeContext.registerOnTime(String, Object)).Note: The time of the firing timer is available via
ProcessTableFunction.Context.timeContext(Class).- Returns:
- the timer's name, or
nullif the timer is unnamed (i.e. registered usingProcessTableFunction.TimeContext.registerOnTime(Object))
-