Package org.apache.flink.runtime.state
Class AbstractManagedMemoryStateBackend
java.lang.Object
org.apache.flink.runtime.state.AbstractStateBackend
org.apache.flink.runtime.state.AbstractManagedMemoryStateBackend
- All Implemented Interfaces:
Serializable,StateBackend
Abstract base class for state backends that use managed memory.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateBackend
StateBackend.CustomInitializationMetrics, StateBackend.KeyedStateBackendParameters<K>, StateBackend.OperatorStateBackendParameters -
Field Summary
Fields inherited from class org.apache.flink.runtime.state.AbstractStateBackend
latencyTrackingConfigBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <K> AbstractKeyedStateBackend<K>createKeyedStateBackend(StateBackend.KeyedStateBackendParameters<K> parameters) Creates a newCheckpointableKeyedStateBackendthat is responsible for holding keyed state and checkpointing it.booleanWhether the state backend uses Flink's managed memory.Methods inherited from class org.apache.flink.runtime.state.AbstractStateBackend
createOperatorStateBackend, getCompressionDecoratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.state.StateBackend
createAsyncKeyedStateBackend, getName, supportsAsyncKeyedStateBackend, supportsNoClaimRestoreMode, supportsSavepointFormat
-
Constructor Details
-
AbstractManagedMemoryStateBackend
public AbstractManagedMemoryStateBackend()
-
-
Method Details
-
createKeyedStateBackend
public abstract <K> AbstractKeyedStateBackend<K> createKeyedStateBackend(StateBackend.KeyedStateBackendParameters<K> parameters) throws IOException Description copied from interface:StateBackendCreates a newCheckpointableKeyedStateBackendthat is responsible for holding keyed state and checkpointing it.Keyed State is state where each value is bound to a key.
- Specified by:
createKeyedStateBackendin interfaceStateBackend- Specified by:
createKeyedStateBackendin classAbstractStateBackend- Type Parameters:
K- The type of the keys by which the state is organized.- Parameters:
parameters- The arguments bundle for creatingCheckpointableKeyedStateBackend.- Returns:
- The Keyed State Backend for the given job, operator, and key group range.
- Throws:
IOException
-
useManagedMemory
public boolean useManagedMemory()Description copied from interface:StateBackendWhether the state backend uses Flink's managed memory.
-