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
SpecialProcessTableFunction.Contextthat is available when theonTimer()method is called.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcurrentTimer()Returns 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 Detail
-
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))
-
-