T - The type of state pointed to by the state handle.public class FileSerializableStateHandle<T extends Serializable> extends AbstractFileStateHandle implements StateHandle<T>
| Constructor and Description |
|---|
FileSerializableStateHandle(org.apache.flink.core.fs.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.
|
long |
getStateSize()
Returns the file size in bytes.
|
discardState, getFilePath, getFileSize, getFileSystemclose, ensureNotClosed, isClosed, registerCloseableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdiscardStatepublic FileSerializableStateHandle(org.apache.flink.core.fs.Path filePath)
filePath - The path to the file containing the checkpointed state.public T getState(ClassLoader classLoader) throws Exception
StateHandlegetState 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 StateObjectIOException - Thrown if the file system cannot be accessed.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.