Class StateListView<N,EE>
- java.lang.Object
-
- org.apache.flink.table.api.dataview.ListView<EE>
-
- org.apache.flink.table.runtime.dataview.StateListView<N,EE>
-
- Type Parameters:
EE
- the external type of element in theListView
- All Implemented Interfaces:
DataView
,StateDataView<N>
- Direct Known Subclasses:
StateListView.KeyedStateListView
,StateListView.NamespacedStateListView
@Internal public abstract class StateListView<N,EE> extends ListView<EE> implements StateDataView<N>
StateListView
is aListView
which is implemented using state backends.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StateListView.KeyedStateListView<N,T>
StateListView.KeyedStateListView
is an default implementation ofStateListView
whose underlying representation is a keyed state.static class
StateListView.NamespacedStateListView<N,T>
StateListView.NamespacedStateListView
is anStateListView
whose underlying representation is a keyed and namespaced state.
-
Field Summary
-
Fields inherited from class org.apache.flink.table.api.dataview.ListView
elementType
-
-
Constructor Summary
Constructors Constructor Description StateListView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(EE value)
Adds the given value to the list.void
addAll(List<EE> list)
Adds all of the elements of the specified list to this list view.void
clear()
Removes all of the elements from this list view.Iterable<EE>
get()
Returns an iterable of the list view.List<EE>
getList()
Returns the entire view's content as an instance ofList
.protected abstract ListState<EE>
getListState()
boolean
remove(EE value)
Removes the given value from the list.void
setList(List<EE> list)
Replaces the entire view's content with the content of the givenList
.-
Methods inherited from class org.apache.flink.table.api.dataview.ListView
equals, hashCode, newListViewDataType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.runtime.dataview.StateDataView
setCurrentNamespace
-
-
-
-
Method Detail
-
getList
public List<EE> getList()
Description copied from class:ListView
Returns the entire view's content as an instance ofList
.
-
setList
public void setList(List<EE> list)
Description copied from class:ListView
Replaces the entire view's content with the content of the givenList
.
-
get
public Iterable<EE> get() throws Exception
Description copied from class:ListView
Returns an iterable of the list view.
-
add
public void add(EE value) throws Exception
Description copied from class:ListView
Adds the given value to the list.
-
addAll
public void addAll(List<EE> list) throws Exception
Description copied from class:ListView
Adds all of the elements of the specified list to this list view.
-
remove
public boolean remove(EE value) throws Exception
Description copied from class:ListView
Removes the given value from the list.
-
clear
public void clear()
Description copied from class:ListView
Removes all of the elements from this list view.
-
-