| Modifier and Type | Class and Description |
|---|---|
class |
StateObjectCollection<T extends StateObject>
This class represents a generic collection for
StateObjects. |
| Modifier and Type | Class and Description |
|---|---|
class |
FinishedOperatorSubtaskState
A specialized
OperatorSubtaskState representing the subtask is finished. |
class |
FullyFinishedOperatorState
A special operator state implementation representing the operators whose instances are all
finished.
|
class |
OperatorState
Simple container class which contains the raw/managed operator state and key-group state handles
from all subtasks of an operator and therefore represents the complete state of a logical
operator.
|
class |
OperatorSubtaskState
This class encapsulates the state for one parallel instance of an operator.
|
class |
StateObjectCollection<T extends StateObject>
This class represents a generic collection for
StateObjects. |
class |
SubtaskState
Deprecated.
Internal class for savepoint backwards compatibility. Don't use for other purposes.
|
class |
TaskState
Deprecated.
Internal class for savepoint backwards compatibility. Don't use for other purposes.
|
class |
TaskStateSnapshot
This class encapsulates state handles to the snapshots of all operator instances executed within
one task.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends StateObject> |
StateObjectCollection.empty() |
static <T extends StateObject> |
StateObjectCollection.emptyIfNull(StateObjectCollection<T> collection) |
static <T extends StateObject> |
StateAssignmentOperation.reDistributePartitionableStates(Map<OperatorID,OperatorState> oldOperatorStates,
int newParallelism,
Function<OperatorSubtaskState,StateObjectCollection<T>> extractHandle,
OperatorStateRepartitioner<T> stateRepartitioner,
Map<OperatorInstanceID,List<T>> result) |
static <T extends StateObject> |
StateObjectCollection.singleton(T stateObject) |
static <T extends StateObject> |
StateObjectCollection.singletonOrEmpty(T stateObject) |
| Modifier and Type | Method and Description |
|---|---|
List<StateObject> |
OperatorState.getDiscardables() |
List<StateObject> |
OperatorSubtaskState.getDiscardables() |
| Modifier and Type | Class and Description |
|---|---|
class |
ChainedStateHandle<T extends StateObject>
Handle to state handles for the operators in an operator chain.
|
interface |
Snapshotable<S extends StateObject>
Interface for objects that can snapshot its state (state backends currently).
|
class |
SnapshotResult<T extends StateObject>
This class contains the combined results from the snapshot of a state backend:
A state object representing the state that will be reported to the Job Manager to
acknowledge the checkpoint.
|
interface |
SnapshotStrategy<S extends StateObject,SR extends SnapshotResources>
Interface for different snapshot approaches in state backends.
|
static interface |
SnapshotStrategy.SnapshotResultSupplier<S extends StateObject>
A supplier for a
SnapshotResult with an access to a CloseableRegistry for io
tasks that need to be closed when cancelling the async part of the checkpoint. |
class |
SnapshotStrategyRunner<T extends StateObject,SR extends SnapshotResources>
A class to execute a
SnapshotStrategy. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CheckpointBoundKeyedStateHandle
KeyedStateHandle that is bound to a specific checkpoint. |
interface |
CompositeStateHandle
Base of all snapshots that are taken by
StateBackends and some other components in tasks. |
interface |
IncrementalKeyedStateHandle
Common interface to all incremental
KeyedStateHandle. |
interface |
KeyedStateHandle
Base for the handles of the checkpointed states in keyed streams.
|
interface |
OperatorStateHandle
Interface of a state handle for operator state.
|
interface |
RetrievableStateHandle<T extends Serializable>
Handle to state that can be read back again via
RetrievableStateHandle.retrieveState(). |
interface |
SavepointKeyedStateHandle
A
KeyedStateHandle that points to a savepoint taken in the unified format. |
interface |
StreamStateHandle
A
StateObject that represents state that was written to a stream. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractChannelStateHandle<Info>
Abstract channel state handle.
|
class |
AbstractIncrementalStateHandle
Abstract superclass for all
IncrementalKeyedStateHandle. |
class |
ChainedStateHandle<T extends StateObject>
Handle to state handles for the operators in an operator chain.
|
class |
DirectoryStateHandle
This state handle represents a directory.
|
class |
IncrementalLocalKeyedStateHandle
State handle for local copies of
IncrementalRemoteKeyedStateHandle. |
class |
IncrementalRemoteKeyedStateHandle
The handle to states of an incremental snapshot.
|
class |
InputChannelStateHandle
Handle to an InputChannel state. |
class |
KeyGroupsSavepointStateHandle
A
KeyGroupsStateHandle that describes a savepoint in the unified format. |
class |
KeyGroupsStateHandle
A handle to the partitioned stream operator state after it has been checkpointed.
|
class |
OperatorStreamStateHandle
State handle for partitionable operator state.
|
class |
PlaceholderStreamStateHandle
A placeholder state handle for shared state that will replaced by an original that was created in
a previous checkpoint.
|
class |
ResultSubpartitionStateHandle
Handle to a ResultSubpartition state. |
class |
RetrievableStreamStateHandle<T extends Serializable>
Wrapper around a
StreamStateHandle to make the referenced state object retrievable trough
a simple get call. |
static class |
SharedStateRegistryImpl.EmptyDiscardStateObjectForRegister
An object with empty discardState for registering.
|
class |
SnapshotResult<T extends StateObject>
This class contains the combined results from the snapshot of a state backend:
A state object representing the state that will be reported to the Job Manager to
acknowledge the checkpoint.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends StateObject> |
SnapshotResult.empty() |
static <T extends StateObject> |
SnapshotResult.of(T jobManagerState) |
static <T extends StateObject> |
SnapshotResult.withLocalState(T jobManagerState,
T localState) |
static <T extends StateObject> |
ChainedStateHandle.wrapSingleHandle(T stateHandleToWrap) |
| Modifier and Type | Method and Description |
|---|---|
static void |
StateUtil.discardStateObjectQuietly(StateObject stateObject) |
static long |
StateUtil.getStateSize(StateObject handle)
Returns the size of a state object.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
StateUtil.bestEffortDiscardAllStateObjects(Iterable<? extends StateObject> handlesToDiscard)
Iterates through the passed state handles and calls discardState() on each handle that is not
null.
|
static org.apache.flink.api.java.tuple.Tuple2<Long,Long> |
StateUtil.discardStateFuture(Future<? extends StateObject> stateFuture)
Discards the given state future by first trying to cancel it.
|
static RuntimeException |
StateUtil.unexpectedStateHandleException(Class<? extends StateObject>[] expectedStateHandleClasses,
Class<? extends StateObject> actualStateHandleClass)
Creates a
RuntimeException that signals that an operation did not get the type of
StateObject that was expected. |
static RuntimeException |
StateUtil.unexpectedStateHandleException(Class<? extends StateObject> expectedStateHandleClass,
Class<? extends StateObject> actualStateHandleClass)
Creates an
RuntimeException that signals that an operation did not get the type of
StateObject that was expected. |
static RuntimeException |
StateUtil.unexpectedStateHandleException(Class<? extends StateObject> expectedStateHandleClass,
Class<? extends StateObject> actualStateHandleClass)
Creates an
RuntimeException that signals that an operation did not get the type of
StateObject that was expected. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ChangelogStateBackendHandle
A handle to ChangelogStateBackend state.
|
interface |
ChangelogStateHandle
A handle to saved
state changes. |
| Modifier and Type | Class and Description |
|---|---|
static class |
ChangelogStateBackendHandle.ChangelogStateBackendHandleImpl |
class |
ChangelogStateBackendLocalHandle
State handle for local copies of
ChangelogStateHandleStreamImpl. |
class |
ChangelogStateHandleStreamImpl
ChangelogStateHandle implementation based on StreamStateHandle. |
| Modifier and Type | Class and Description |
|---|---|
class |
InMemoryChangelogStateHandle
In-memory
ChangelogStateHandle. |
| Modifier and Type | Class and Description |
|---|---|
class |
DirectoryStreamStateHandle
This state handle represents a directory, usually used to be registered to
SharedStateRegistry to track the life cycle of the directory. |
class |
EmptyFileMergingOperatorStreamStateHandle
An empty
FileMergingOperatorStreamStateHandle that is only used as a placeholder to
prevent file merging directory from being deleted. |
class |
EmptySegmentFileStateHandle
An empty
SegmentFileStateHandle that is only used as a placeholder. |
class |
FileMergingOperatorStreamStateHandle
A
OperatorStreamStateHandle that works for file merging checkpoints. |
class |
SegmentFileStateHandle
FileStateHandle for state that was written to a file segment. |
| Modifier and Type | Class and Description |
|---|---|
class |
FileStateHandle
StreamStateHandle for state that was written to a file stream. |
class |
RelativeFileStateHandle
A
StreamStateHandle for state that was written to a file stream. |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteStreamStateHandle
A state handle that contains stream state in a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
StateHandleStoreUtils.serializeOrDiscard(StateObject stateObject)
Serializes the passed
StateObject and discards the state in case of failure. |
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.