Class HashMapStateBackendFactory
java.lang.Object
org.apache.flink.runtime.state.hashmap.HashMapStateBackendFactory
- All Implemented Interfaces:
StateBackendFactory<HashMapStateBackend>
@PublicEvolving
public class HashMapStateBackendFactory
extends Object
implements StateBackendFactory<HashMapStateBackend>
A factory that creates an
HashMapStateBackend from a configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromConfig(org.apache.flink.configuration.ReadableConfig config, ClassLoader classLoader) Creates the state backend, optionally using the given configuration.
-
Constructor Details
-
HashMapStateBackendFactory
public HashMapStateBackendFactory()
-
-
Method Details
-
createFromConfig
public HashMapStateBackend createFromConfig(org.apache.flink.configuration.ReadableConfig config, ClassLoader classLoader) throws org.apache.flink.configuration.IllegalConfigurationException Description copied from interface:StateBackendFactoryCreates the state backend, optionally using the given configuration.- Specified by:
createFromConfigin interfaceStateBackendFactory<HashMapStateBackend>- 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:
org.apache.flink.configuration.IllegalConfigurationException- If the configuration misses critical values, or specifies invalid values
-