T
- The type of state pointed to by the state handle.@Deprecated public class FileSerializableStateHandle<T extends Serializable> extends AbstractFileStateHandle implements StateHandle<T>
Constructor and Description |
---|
FileSerializableStateHandle(Path filePath)
Deprecated.
Creates a new FileSerializableStateHandle pointing to state at the given file path.
|
Modifier and Type | Method and Description |
---|---|
T |
getState(ClassLoader classLoader)
Deprecated.
This retrieves and return the state represented by the handle.
|
long |
getStateSize()
Deprecated.
Returns the file size in bytes.
|
discardState, getFilePath, getFileSize, getFileSystem
close, ensureNotClosed, isClosed, registerCloseable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
discardState
public FileSerializableStateHandle(Path filePath)
filePath
- The path to the file containing the checkpointed state.public T getState(ClassLoader classLoader) throws Exception
StateHandle
getState
in interface StateHandle<T extends Serializable>
classLoader
- Class loader for deserializing user code specific classesException
- Thrown, if the state cannot be fetched.public long getStateSize() throws IOException
getStateSize
in interface StateObject
IOException
- Thrown if the file system cannot be accessed.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.