@Deprecated @Internal public class StreamTaskStateList extends Object implements StateHandle<StreamTaskState[]>
| Constructor and Description |
|---|
StreamTaskStateList(StreamTaskState[] states)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
void |
discardState()
Deprecated.
Discards the state referred to by this handle, to free up resources in
the persistent storage.
|
StreamTaskState[] |
getState(ClassLoader userCodeClassLoader)
Deprecated.
This retrieves and return the state represented by the handle.
|
long |
getStateSize()
Deprecated.
Returns the size of the state in bytes.
|
boolean |
isEmpty()
Deprecated.
|
public StreamTaskStateList(StreamTaskState[] states) throws Exception
Exceptionpublic boolean isEmpty()
public StreamTaskState[] getState(ClassLoader userCodeClassLoader)
StateHandlegetState in interface StateHandle<StreamTaskState[]>userCodeClassLoader - Class loader for deserializing user code specific classespublic void discardState()
throws Exception
StateObjectdiscardState in interface StateObjectExceptionpublic long getStateSize()
throws Exception
StateObjectIf the the size is not known, return 0.
getStateSize in interface StateObjectException - If the operation fails during size retrieval.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.