@PublicEvolving public abstract class AbstractStateBackend extends Object implements StateBackend, Serializable
StateBackend interface.
This class has currently no contents and only kept to not break the prior class hierarchy for users.
StateBackend.CustomInitializationMetrics, StateBackend.KeyedStateBackendParameters<K>, StateBackend.OperatorStateBackendParameters| 限定符和类型 | 字段和说明 |
|---|---|
protected LatencyTrackingStateConfig.Builder |
latencyTrackingConfigBuilder |
| 构造器和说明 |
|---|
AbstractStateBackend() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract <K> AbstractKeyedStateBackend<K> |
createKeyedStateBackend(StateBackend.KeyedStateBackendParameters<K> parameters)
Creates a new
CheckpointableKeyedStateBackend that is responsible for holding
keyed state and checkpointing it. |
abstract OperatorStateBackend |
createOperatorStateBackend(StateBackend.OperatorStateBackendParameters parameters)
Creates a new
OperatorStateBackend that can be used for storing operator state. |
static StreamCompressionDecorator |
getCompressionDecorator(org.apache.flink.api.common.ExecutionConfig executionConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAsyncKeyedStateBackend, getName, supportsAsyncKeyedStateBackend, supportsNoClaimRestoreMode, supportsSavepointFormat, useManagedMemoryprotected LatencyTrackingStateConfig.Builder latencyTrackingConfigBuilder
public static StreamCompressionDecorator getCompressionDecorator(org.apache.flink.api.common.ExecutionConfig executionConfig)
public abstract <K> AbstractKeyedStateBackend<K> createKeyedStateBackend(StateBackend.KeyedStateBackendParameters<K> parameters) throws IOException
StateBackendCheckpointableKeyedStateBackend that is responsible for holding
keyed state and checkpointing it.
Keyed State is state where each value is bound to a key.
createKeyedStateBackend 在接口中 StateBackendK - The type of the keys by which the state is organized.parameters - The arguments bundle for creating CheckpointableKeyedStateBackend.IOExceptionpublic abstract OperatorStateBackend createOperatorStateBackend(StateBackend.OperatorStateBackendParameters parameters) throws Exception
StateBackendOperatorStateBackend 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.
createOperatorStateBackend 在接口中 StateBackendparameters - The arguments bundle for creating OperatorStateBackend.Exception - This method may forward all exceptions that occur while instantiating the
backend.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.