public static final class AbstractStateBackend.DataInputViewHandle extends Object implements StateHandle<DataInputView>
DataInputView from a StreamStateHandle.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
discardState()
Discards the state referred to by this handle, to free up resources in
the persistent storage.
|
DataInputView |
getState(ClassLoader userCodeClassLoader)
This retrieves and return the state represented by the handle.
|
long |
getStateSize()
Returns the size of the state in bytes.
|
StreamStateHandle |
getStreamStateHandle() |
public StreamStateHandle getStreamStateHandle()
public DataInputView getState(ClassLoader userCodeClassLoader) throws Exception
StateHandlegetState in interface StateHandle<DataInputView>userCodeClassLoader - Class loader for deserializing user code specific classesException - Thrown, if the state cannot be fetched.public 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.