public class OperatorStateImpl<V> extends Object implements ListState<V>
| Constructor and Description |
|---|
OperatorStateImpl(ListStateDescriptor<V> descriptor,
AbstractKeyStateBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(V value)
add the value to list
|
List<V> |
get()
get the value in state
|
protected String |
getStateKey() |
void |
init() |
void |
setCurrentKey(Object currentKey)
set current key of the state
|
void |
setSplit(boolean split) |
void |
update(List<V> list)
update list state
|
public OperatorStateImpl(ListStateDescriptor<V> descriptor, AbstractKeyStateBackend backend)
public void init()
protected String getStateKey()
public void setCurrentKey(Object currentKey)
StatesetCurrentKey in interface Statepublic List<V> get()
UnaryStateget in interface UnaryState<List<V>>public void update(List<V> list)
ListStatepublic void setSplit(boolean split)
Copyright © 2020. All rights reserved.