Class WindowValueState<W>
java.lang.Object
org.apache.flink.table.runtime.operators.window.tvf.state.WindowValueState<W>
- All Implemented Interfaces:
WindowState<W>
A wrapper of
ValueState which is easier to update based on window namespace.-
Constructor Summary
ConstructorsConstructorDescriptionWindowValueState(org.apache.flink.runtime.state.internal.InternalValueState<org.apache.flink.table.data.RowData, W, org.apache.flink.table.data.RowData> windowState) -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the value mapped under current key and the given window.voidUpdate the state with the given value under current key and the given window.org.apache.flink.table.data.RowDataReturns the current value for the state under current key and the given window.
-
Constructor Details
-
WindowValueState
public WindowValueState(org.apache.flink.runtime.state.internal.InternalValueState<org.apache.flink.table.data.RowData, W, org.apache.flink.table.data.RowData> windowState)
-
-
Method Details
-
clear
Description copied from interface:WindowStateRemoves the value mapped under current key and the given window.- Specified by:
clearin interfaceWindowState<W>
-
value
Returns the current value for the state under current key and the given window.- Throws:
IOException
-
update
Update the state with the given value under current key and the given window.- Parameters:
window- the window namespace.value- the new value for the state.- Throws:
IOException
-