Interface InternalWindowProcessFunction.Context<K,W extends Window>
- Type Parameters:
W-
- All Known Subinterfaces:
MergingWindowProcessFunction.MergingContext<K,W>
- Enclosing class:
- InternalWindowProcessFunction<K,
W extends Window>
public static interface InternalWindowProcessFunction.Context<K,W extends Window>
Information available in an invocation of methods of
InternalWindowProcessFunction.-
Method Summary
Modifier and TypeMethodDescriptionvoidclearPreviousState(W window) Clear previous agg state (used for retraction) of the given window.voidclearTrigger(W window) CallTrigger.clear(Window)} on trigger.voidclearWindowState(W window) Clear window state of the given window.longReturns the current processing time.longReturns the current event-time watermark.voiddeleteCleanupTimer(W window) Deletes the cleanup timer set for the contents of the provided window.<S extends org.apache.flink.api.common.state.State>
SgetPartitionedState(org.apache.flink.api.common.state.StateDescriptor<S, ?> stateDescriptor) Creates a partitioned state handle, using the state backend configured for this task.Returns the shifted timezone of the window.org.apache.flink.table.data.RowDatagetWindowAccumulators(W window) Gets the accumulators of the given window.voidonMerge(W newWindow, Collection<W> mergedWindows) CallTrigger.onMerge(Window, Trigger.OnMergeContext)on trigger.voidsetWindowAccumulators(W window, org.apache.flink.table.data.RowData acc) Sets the accumulators of the given window.
-
Method Details
-
getPartitionedState
<S extends org.apache.flink.api.common.state.State> S getPartitionedState(org.apache.flink.api.common.state.StateDescriptor<S, ?> stateDescriptor) throws ExceptionCreates a partitioned state handle, using the state backend configured for this task.- Throws:
IllegalStateException- Thrown, if the key/value state was already initialized.Exception- Thrown, if the state backend cannot create the key/value state.
-
currentKey
K currentKey()- Returns:
- current key of current processed element.
-
currentProcessingTime
long currentProcessingTime()Returns the current processing time. -
currentWatermark
long currentWatermark()Returns the current event-time watermark. -
getShiftTimeZone
ZoneId getShiftTimeZone()Returns the shifted timezone of the window. -
getWindowAccumulators
Gets the accumulators of the given window.- Throws:
Exception
-
setWindowAccumulators
Sets the accumulators of the given window.- Throws:
Exception
-
clearWindowState
Clear window state of the given window.- Throws:
Exception
-
clearPreviousState
Clear previous agg state (used for retraction) of the given window.- Throws:
Exception
-
clearTrigger
CallTrigger.clear(Window)} on trigger.- Throws:
Exception
-
onMerge
CallTrigger.onMerge(Window, Trigger.OnMergeContext)on trigger.- Throws:
Exception
-
deleteCleanupTimer
Deletes the cleanup timer set for the contents of the provided window.- Throws:
Exception
-