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 State> |
getPartitionedState(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.
|
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,
RowData acc)
Sets the accumulators of the given window.
|
<S extends State> S getPartitionedState(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()
RowData getWindowAccumulators(W window) throws Exception
Exception
void setWindowAccumulators(W window, RowData acc) throws Exception
Exception
void clearWindowState(W window) throws Exception
Exception
void clearPreviousState(W window) throws Exception
Exception
void clearTrigger(W window) throws Exception
Trigger.clear(Window)
} on trigger.Exception
void onMerge(W newWindow, Collection<W> mergedWindows) throws Exception
Trigger.onMerge(Window, Trigger.OnMergeContext)
on trigger.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.