T
- The type of state pointed to by the state handle.public class FileSerializableStateHandle<T> extends AbstractFileState implements StateHandle<T>
Constructor and Description |
---|
FileSerializableStateHandle(Path filePath)
Creates a new FileSerializableStateHandle pointing to state at the given file path.
|
Modifier and Type | Method and Description |
---|---|
T |
getState(ClassLoader classLoader)
This retrieves and return the state represented by the handle.
|
discardState, getFilePath, getFileSystem
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>
classLoader
- Class loader for deserializing user code specific classesException
- Thrown, if the state cannot be fetched.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.