Class FileSystemStateStorageHelper<T extends Serializable>
java.lang.Object
org.apache.flink.runtime.persistence.filesystem.FileSystemStateStorageHelper<T>
- Type Parameters:
T- The type of the data that can be stored by this storage helper.
- All Implemented Interfaces:
RetrievableStateStorageHelper<T>
public class FileSystemStateStorageHelper<T extends Serializable>
extends Object
implements RetrievableStateStorageHelper<T>
RetrievableStateStorageHelper implementation which stores the state in the given
filesystem path.-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemStateStorageHelper(org.apache.flink.core.fs.Path rootPath, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionStores the given state and returns a state handle to it.
-
Constructor Details
-
FileSystemStateStorageHelper
public FileSystemStateStorageHelper(org.apache.flink.core.fs.Path rootPath, String prefix) throws IOException - Throws:
IOException
-
-
Method Details
-
store
Description copied from interface:RetrievableStateStorageHelperStores the given state and returns a state handle to it.- Specified by:
storein interfaceRetrievableStateStorageHelper<T extends Serializable>- Parameters:
state- State to be stored- Returns:
- State handle to the stored state
- Throws:
Exception- if an error occurred while storing the state.
-