Package org.apache.flink.runtime.state
Class AbstractStateBackend
- java.lang.Object
-
- org.apache.flink.runtime.state.AbstractStateBackend
-
- All Implemented Interfaces:
Serializable
,StateBackend
- Direct Known Subclasses:
AbstractFileStateBackend
,AbstractManagedMemoryStateBackend
,HashMapStateBackend
@PublicEvolving public abstract class AbstractStateBackend extends Object implements StateBackend, Serializable
An abstract base implementation of theStateBackend
interface.This class has currently no contents and only kept to not break the prior class hierarchy for users.
- See Also:
- Serialized Form
-
-
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 Modifier and Type Field Description protected LatencyTrackingStateConfig.Builder
latencyTrackingConfigBuilder
-
Constructor Summary
Constructors Constructor Description AbstractStateBackend()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <K> AbstractKeyedStateBackend<K>
createKeyedStateBackend(StateBackend.KeyedStateBackendParameters<K> parameters)
Creates a newCheckpointableKeyedStateBackend
that is responsible for holding keyed state and checkpointing it.abstract OperatorStateBackend
createOperatorStateBackend(StateBackend.OperatorStateBackendParameters parameters)
Creates a newOperatorStateBackend
that can be used for storing operator state.static StreamCompressionDecorator
getCompressionDecorator(ExecutionConfig executionConfig)
-
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
createAsyncKeyedStateBackend, getName, supportsAsyncKeyedStateBackend, supportsNoClaimRestoreMode, supportsSavepointFormat, useManagedMemory
-
-
-
-
Field Detail
-
latencyTrackingConfigBuilder
protected LatencyTrackingStateConfig.Builder latencyTrackingConfigBuilder
-
-
Method Detail
-
getCompressionDecorator
public static StreamCompressionDecorator getCompressionDecorator(ExecutionConfig executionConfig)
-
createKeyedStateBackend
public abstract <K> AbstractKeyedStateBackend<K> createKeyedStateBackend(StateBackend.KeyedStateBackendParameters<K> parameters) throws IOException
Description copied from interface:StateBackend
Creates a newCheckpointableKeyedStateBackend
that is responsible for holding keyed state and checkpointing it.Keyed State is state where each value is bound to a key.
- Specified by:
createKeyedStateBackend
in interfaceStateBackend
- 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
-
createOperatorStateBackend
public abstract OperatorStateBackend createOperatorStateBackend(StateBackend.OperatorStateBackendParameters parameters) throws Exception
Description copied from interface:StateBackend
Creates a newOperatorStateBackend
that can be used for storing operator state.Operator state is state that is associated with parallel operator (or function) instances, rather than with keys.
- Specified by:
createOperatorStateBackend
in interfaceStateBackend
- Parameters:
parameters
- The arguments bundle for creatingOperatorStateBackend
.- Returns:
- The OperatorStateBackend for operator identified by the job and operator identifier.
- Throws:
Exception
- This method may forward all exceptions that occur while instantiating the backend.
-
-