public abstract class AbstractManagedMemoryStateBackend extends AbstractStateBackend
latencyTrackingConfigBuilder
Constructor and Description |
---|
AbstractManagedMemoryStateBackend() |
Modifier and Type | Method and Description |
---|---|
abstract <K> AbstractKeyedStateBackend<K> |
createKeyedStateBackend(Environment env,
JobID jobID,
String operatorIdentifier,
TypeSerializer<K> keySerializer,
int numberOfKeyGroups,
KeyGroupRange keyGroupRange,
TaskKvStateRegistry kvStateRegistry,
TtlTimeProvider ttlTimeProvider,
MetricGroup metricGroup,
Collection<KeyedStateHandle> stateHandles,
CloseableRegistry cancelStreamRegistry,
double managedMemoryFraction)
Creates a new
CheckpointableKeyedStateBackend with the given managed memory fraction. |
boolean |
useManagedMemory()
Whether the state backend uses Flink's managed memory.
|
createKeyedStateBackend, createOperatorStateBackend, getCompressionDecorator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, supportsNoClaimRestoreMode, supportsSavepointFormat
public abstract <K> AbstractKeyedStateBackend<K> createKeyedStateBackend(Environment env, JobID jobID, String operatorIdentifier, TypeSerializer<K> keySerializer, int numberOfKeyGroups, KeyGroupRange keyGroupRange, TaskKvStateRegistry kvStateRegistry, TtlTimeProvider ttlTimeProvider, MetricGroup metricGroup, @Nonnull Collection<KeyedStateHandle> stateHandles, CloseableRegistry cancelStreamRegistry, double managedMemoryFraction) throws Exception
StateBackend
CheckpointableKeyedStateBackend
with the given managed memory fraction.
Backends that use managed memory are required to implement this interface.Exception
public boolean useManagedMemory()
StateBackend
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.