Class EmbeddedRocksDBStateBackendFactory
- java.lang.Object
-
- org.apache.flink.contrib.streaming.state.EmbeddedRocksDBStateBackendFactory
-
- All Implemented Interfaces:
StateBackendFactory<EmbeddedRocksDBStateBackend>
@PublicEvolving public class EmbeddedRocksDBStateBackendFactory extends Object implements StateBackendFactory<EmbeddedRocksDBStateBackend>
A factory that creates anEmbeddedRocksDBStateBackend
from a configuration.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedRocksDBStateBackendFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmbeddedRocksDBStateBackend
createFromConfig(ReadableConfig config, ClassLoader classLoader)
Creates the state backend, optionally using the given configuration.
-
-
-
Method Detail
-
createFromConfig
public EmbeddedRocksDBStateBackend createFromConfig(ReadableConfig config, ClassLoader classLoader) throws IllegalConfigurationException
Description copied from interface:StateBackendFactory
Creates the state backend, optionally using the given configuration.- Specified by:
createFromConfig
in interfaceStateBackendFactory<EmbeddedRocksDBStateBackend>
- Parameters:
config
- The Flink configuration (loaded by the TaskManager).classLoader
- The class loader that should be used to load the state backend.- Returns:
- The created state backend.
- Throws:
IllegalConfigurationException
- If the configuration misses critical values, or specifies invalid values
-
-