@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.
| Constructor and Description |
|---|
AbstractStateBackend() |
| Modifier and Type | Method and 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)
Creates a new
AbstractKeyedStateBackend that is responsible for holding keyed state
and checkpointing it. |
abstract OperatorStateBackend |
createOperatorStateBackend(Environment env,
String operatorIdentifier)
Creates a new
OperatorStateBackend that can be used for storing operator state. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCheckpointStorage, createKeyedStateBackend, createKeyedStateBackend, resolveCheckpointpublic 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) throws IOException
StateBackendAbstractKeyedStateBackend that is responsible for holding keyed state
and checkpointing it.
Keyed State is state where each value is bound to a key.
createKeyedStateBackend in interface StateBackendK - The type of the keys by which the state is organized.IOExceptionpublic abstract OperatorStateBackend createOperatorStateBackend(Environment env, String operatorIdentifier) 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 in interface StateBackendenv - The runtime environment of the executing task.operatorIdentifier - The identifier of the operator whose state should be stored.Exception - This method may forward all exceptions that occur while instantiating the backend.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.