public class SubtaskState extends Object implements Serializable
TaskState.
The state itself is kept in serialized form, since the checkpoint coordinator itself
is never looking at it anyways and only sends it back out in case of a recovery.
Furthermore, the state may involve user-defined classes that are not accessible without
the respective classloader.| Constructor and Description |
|---|
SubtaskState(org.apache.flink.util.SerializedValue<StateHandle<?>> state,
long stateSize,
long duration) |
| Modifier and Type | Method and Description |
|---|---|
void |
discard(ClassLoader userClassLoader) |
boolean |
equals(Object o) |
long |
getDuration() |
org.apache.flink.util.SerializedValue<StateHandle<?>> |
getState() |
long |
getStateSize() |
int |
hashCode() |
String |
toString() |
public SubtaskState(org.apache.flink.util.SerializedValue<StateHandle<?>> state, long stateSize, long duration)
public org.apache.flink.util.SerializedValue<StateHandle<?>> getState()
public long getStateSize()
public long getDuration()
public void discard(ClassLoader userClassLoader) throws Exception
ExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.