public final class WindowValueState<W> extends Object implements WindowState<W>
ValueState which is easier to update based on window namespace.| Constructor and Description |
|---|
WindowValueState(org.apache.flink.runtime.state.internal.InternalValueState<org.apache.flink.table.data.RowData,W,org.apache.flink.table.data.RowData> windowState) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(W window)
Removes the value mapped under current key and the given window.
|
void |
update(W window,
org.apache.flink.table.data.RowData value)
Update the state with the given value under current key and the given window.
|
org.apache.flink.table.data.RowData |
value(W window)
Returns the current value for the state under current key and the given window.
|
public WindowValueState(org.apache.flink.runtime.state.internal.InternalValueState<org.apache.flink.table.data.RowData,W,org.apache.flink.table.data.RowData> windowState)
public void clear(W window)
WindowStateclear in interface WindowState<W>public org.apache.flink.table.data.RowData value(W window) throws IOException
IOExceptionpublic void update(W window, org.apache.flink.table.data.RowData value) throws IOException
window - the window namespace.value - the new value for the state.IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.