@Internal public class StreamTaskState extends Object implements Serializable
AbstractStreamOperator
.
This state consists of any combination of those three:
Constructor and Description |
---|
StreamTaskState() |
Modifier and Type | Method and Description |
---|---|
void |
discardState()
Discards all the contained states and sets them to null.
|
StateHandle<Serializable> |
getFunctionState() |
HashMap<String,KvStateSnapshot<?,?,?,?,?>> |
getKvStates() |
StateHandle<?> |
getOperatorState() |
boolean |
isEmpty()
Checks if this state object actually contains any state, or if all of the state
fields are null.
|
void |
setFunctionState(StateHandle<Serializable> functionState) |
void |
setKvStates(HashMap<String,KvStateSnapshot<?,?,?,?,?>> kvStates) |
void |
setOperatorState(StateHandle<?> operatorState) |
public StateHandle<?> getOperatorState()
public void setOperatorState(StateHandle<?> operatorState)
public StateHandle<Serializable> getFunctionState()
public void setFunctionState(StateHandle<Serializable> functionState)
public HashMap<String,KvStateSnapshot<?,?,?,?,?>> getKvStates()
public void setKvStates(HashMap<String,KvStateSnapshot<?,?,?,?,?>> kvStates)
public boolean isEmpty()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.