Class WindowListState<W>
java.lang.Object
org.apache.flink.table.runtime.operators.window.tvf.state.WindowListState<W>
- All Implemented Interfaces:
WindowState<W>
A wrapper of
ListState which is easier to update based on window namespace.-
Constructor Summary
ConstructorsConstructorDescriptionWindowListState(org.apache.flink.runtime.state.internal.InternalListState<org.apache.flink.table.data.RowData, W, org.apache.flink.table.data.RowData> windowState) -
Method Summary
-
Constructor Details
-
WindowListState
public WindowListState(org.apache.flink.runtime.state.internal.InternalListState<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>
-
get
- Throws:
Exception
-
add
Updates the operator state accessible byget(W)by adding the given value to the list of values. The next timeget(W)is called (for the same state partition) the returned state will represent the updated list.If null is passed in, the state value will remain unchanged.
- Parameters:
window- The namespace for the state.value- The new value for the state.- Throws:
Exception- Thrown if the system cannot access the state.
-