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
public abstract class AbstractManagedMemoryStateBackend extends AbstractStateBackend
Abstract base class for state backends that use managed memory.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.state.AbstractStateBackend
latencyTrackingConfigBuilder
-
-
Constructor Summary
Constructors Constructor Description AbstractManagedMemoryStateBackend()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <K> AbstractKeyedStateBackend<K>createKeyedStateBackend(Environment env, org.apache.flink.api.common.JobID jobID, String operatorIdentifier, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, TaskKvStateRegistry kvStateRegistry, TtlTimeProvider ttlTimeProvider, org.apache.flink.metrics.MetricGroup metricGroup, Collection<KeyedStateHandle> stateHandles, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, double managedMemoryFraction)Creates a newCheckpointableKeyedStateBackendwith the given managed memory fraction.booleanuseManagedMemory()Whether the state backend uses Flink's managed memory.-
Methods inherited from class org.apache.flink.runtime.state.AbstractStateBackend
createKeyedStateBackend, createOperatorStateBackend, getCompressionDecorator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.StateBackend
getName, supportsNoClaimRestoreMode, supportsSavepointFormat
-
-
-
-
Method Detail
-
createKeyedStateBackend
public abstract <K> AbstractKeyedStateBackend<K> createKeyedStateBackend(Environment env, org.apache.flink.api.common.JobID jobID, String operatorIdentifier, org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, TaskKvStateRegistry kvStateRegistry, TtlTimeProvider ttlTimeProvider, org.apache.flink.metrics.MetricGroup metricGroup, @Nonnull Collection<KeyedStateHandle> stateHandles, org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry, double managedMemoryFraction) throws Exception
Description copied from interface:StateBackendCreates a newCheckpointableKeyedStateBackendwith the given managed memory fraction. Backends that use managed memory are required to implement this interface.- Throws:
Exception
-
useManagedMemory
public boolean useManagedMemory()
Description copied from interface:StateBackendWhether the state backend uses Flink's managed memory.
-
-