W - public static interface InternalWindowProcessFunction.Context<K,W extends Window>
InternalWindowProcessFunction.| Modifier and Type | Method and Description |
|---|---|
void |
clearPreviousState(W window)
Clear previous agg state (used for retraction) of the given window.
|
void |
clearTrigger(W window)
Call
Trigger.clear(Window)} on trigger. |
void |
clearWindowState(W window)
Clear window state of the given window.
|
K |
currentKey() |
long |
currentProcessingTime()
Returns the current processing time.
|
long |
currentWatermark()
Returns the current event-time watermark.
|
void |
deleteCleanupTimer(W window)
Deletes the cleanup timer set for the contents of the provided window.
|
<S extends org.apache.flink.api.common.state.State> |
getPartitionedState(org.apache.flink.api.common.state.StateDescriptor<S,?> stateDescriptor)
Creates a partitioned state handle, using the state backend configured for this task.
|
ZoneId |
getShiftTimeZone()
Returns the shifted timezone of the window.
|
org.apache.flink.table.data.RowData |
getWindowAccumulators(W window)
Gets the accumulators of the given window.
|
void |
onMerge(W newWindow,
Collection<W> mergedWindows)
Call
Trigger.onMerge(Window, Trigger.OnMergeContext) on trigger. |
void |
setWindowAccumulators(W window,
org.apache.flink.table.data.RowData acc)
Sets the accumulators of the given window.
|
<S extends org.apache.flink.api.common.state.State> S getPartitionedState(org.apache.flink.api.common.state.StateDescriptor<S,?> stateDescriptor)
throws Exception
IllegalStateException - Thrown, if the key/value state was already initialized.Exception - Thrown, if the state backend cannot create the key/value state.K currentKey()
long currentProcessingTime()
long currentWatermark()
ZoneId getShiftTimeZone()
org.apache.flink.table.data.RowData getWindowAccumulators(W window) throws Exception
Exceptionvoid setWindowAccumulators(W window, org.apache.flink.table.data.RowData acc) throws Exception
Exceptionvoid clearWindowState(W window) throws Exception
Exceptionvoid clearPreviousState(W window) throws Exception
Exceptionvoid clearTrigger(W window) throws Exception
Trigger.clear(Window)} on trigger.Exceptionvoid onMerge(W newWindow, Collection<W> mergedWindows) throws Exception
Trigger.onMerge(Window, Trigger.OnMergeContext) on trigger.ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.