public class FileStreamStateHandle extends AbstractFileState implements StreamStateHandle
Constructor and Description |
---|
FileStreamStateHandle(org.apache.flink.core.fs.Path filePath)
Creates a new FileStreamStateHandle pointing to state at the given file path.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getState(ClassLoader userCodeClassLoader)
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 FileStreamStateHandle(org.apache.flink.core.fs.Path filePath)
filePath
- The path to the file containing the checkpointed state.public InputStream getState(ClassLoader userCodeClassLoader) throws Exception
StateHandle
getState
in interface StateHandle<InputStream>
userCodeClassLoader
- Class loader for deserializing user code specific classesException
- Thrown, if the state cannot be fetched.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.