T - The type of the data that can be stored by this storage helper.public class FileSystemStateStorageHelper<T extends Serializable> extends Object implements RetrievableStateStorageHelper<T>
RetrievableStateStorageHelper implementation which stores the state in the given
filesystem path.| Constructor and Description |
|---|
FileSystemStateStorageHelper(org.apache.flink.core.fs.Path rootPath,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
RetrievableStateHandle<T> |
store(T state)
Stores the given state and returns a state handle to it.
|
public FileSystemStateStorageHelper(org.apache.flink.core.fs.Path rootPath,
String prefix)
throws IOException
IOExceptionpublic RetrievableStateHandle<T> store(T state) throws Exception
RetrievableStateStorageHelperstore in interface RetrievableStateStorageHelper<T extends Serializable>state - State to be storedException - if an error occurred while storing the state.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.