Class AbstractKeyedStateBackend<K>

java.lang.Object
org.apache.flink.runtime.state.AbstractKeyedStateBackend<K>
Type Parameters:
K - Type of the key by which state is keyed.
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.flink.api.common.state.CheckpointListener, org.apache.flink.api.common.state.InternalCheckpointListener, CheckpointableKeyedStateBackend<K>, InternalKeyContext<K>, KeyedStateBackend<K>, KeyedStateFactory, PriorityQueueSetFactory, Snapshotable<SnapshotResult<KeyedStateHandle>>, TestableKeyedStateBackend<K>, org.apache.flink.util.Disposable
Direct Known Subclasses:
HeapKeyedStateBackend

public abstract class AbstractKeyedStateBackend<K> extends Object implements CheckpointableKeyedStateBackend<K>, org.apache.flink.api.common.state.InternalCheckpointListener, TestableKeyedStateBackend<K>, InternalKeyContext<K>
Base implementation of KeyedStateBackend. The state can be checkpointed to streams using Snapshotable.snapshot(long, long, CheckpointStreamFactory, CheckpointOptions).
  • Field Details

    • keySerializer

      protected final org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer
      The key serializer.
    • numberOfKeyGroups

      protected final int numberOfKeyGroups
      The number of key-groups aka max parallelism.
    • keyGroupRange

      protected final KeyGroupRange keyGroupRange
      Range of key-groups for which this backend is responsible.
    • kvStateRegistry

      protected final TaskKvStateRegistry kvStateRegistry
      KvStateRegistry helper for this task.
    • cancelStreamRegistry

      protected org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry
      Registry for all opened streams, so they can be closed if the task using this backend is closed.
    • userCodeClassLoader

      protected final ClassLoader userCodeClassLoader
    • ttlTimeProvider

      protected final TtlTimeProvider ttlTimeProvider
    • latencyTrackingStateConfig

      protected final LatencyTrackingStateConfig latencyTrackingStateConfig
    • keyGroupCompressionDecorator

      protected final StreamCompressionDecorator keyGroupCompressionDecorator
      Decorates the input and output streams to write key-groups compressed.
    • keyContext

      protected final InternalKeyContext<K> keyContext
      The key context for this backend.
  • Constructor Details

  • Method Details