| Modifier and Type | Method and Description |
|---|---|
static Map<OperatorInstanceID,List<OperatorStateHandle>> |
StateAssignmentOperation.applyRepartitioner(OperatorID operatorID,
OperatorStateRepartitioner opStateRepartitioner,
List<List<OperatorStateHandle>> chainOpParallelStates,
int oldParallelism,
int newParallelism) |
static List<List<OperatorStateHandle>> |
StateAssignmentOperation.applyRepartitioner(OperatorStateRepartitioner opStateRepartitioner,
List<List<OperatorStateHandle>> chainOpParallelStates,
int oldParallelism,
int newParallelism)
Repartitions the given operator state using the given
OperatorStateRepartitioner with respect to the new
parallelism. |
StateObjectCollection<OperatorStateHandle> |
PrioritizedOperatorSubtaskState.getJobManagerManagedOperatorState()
Returns the managed operator state from the job manager, which represents the ground truth about what this state
should represent.
|
StateObjectCollection<OperatorStateHandle> |
PrioritizedOperatorSubtaskState.getJobManagerRawOperatorState()
Returns the raw operator state from the job manager, which represents the ground truth about what this state
should represent.
|
StateObjectCollection<OperatorStateHandle> |
OperatorSubtaskState.getManagedOperatorState()
Returns a handle to the managed operator state.
|
ChainedStateHandle<OperatorStateHandle> |
SubtaskState.getManagedOperatorState() |
List<StateObjectCollection<OperatorStateHandle>> |
PrioritizedOperatorSubtaskState.getPrioritizedManagedOperatorState()
Returns an immutable list with all alternative snapshots to restore the managed operator state, in the order in
which we should attempt to restore.
|
List<StateObjectCollection<OperatorStateHandle>> |
PrioritizedOperatorSubtaskState.getPrioritizedRawOperatorState()
Returns an immutable list with all alternative snapshots to restore the raw operator state, in the order in
which we should attempt to restore.
|
StateObjectCollection<OperatorStateHandle> |
OperatorSubtaskState.getRawOperatorState()
Returns a handle to the raw operator state.
|
ChainedStateHandle<OperatorStateHandle> |
SubtaskState.getRawOperatorState() |
List<List<OperatorStateHandle>> |
OperatorStateRepartitioner.repartitionState(List<List<OperatorStateHandle>> previousParallelSubtaskStates,
int oldParallelism,
int newParallelism) |
List<List<OperatorStateHandle>> |
RoundRobinOperatorStateRepartitioner.repartitionState(List<List<OperatorStateHandle>> previousParallelSubtaskStates,
int oldParallelism,
int newParallelism) |
| Modifier and Type | Method and Description |
|---|---|
static Map<OperatorInstanceID,List<OperatorStateHandle>> |
StateAssignmentOperation.applyRepartitioner(OperatorID operatorID,
OperatorStateRepartitioner opStateRepartitioner,
List<List<OperatorStateHandle>> chainOpParallelStates,
int oldParallelism,
int newParallelism) |
static List<List<OperatorStateHandle>> |
StateAssignmentOperation.applyRepartitioner(OperatorStateRepartitioner opStateRepartitioner,
List<List<OperatorStateHandle>> chainOpParallelStates,
int oldParallelism,
int newParallelism)
Repartitions the given operator state using the given
OperatorStateRepartitioner with respect to the new
parallelism. |
static OperatorSubtaskState |
StateAssignmentOperation.operatorSubtaskStateFrom(OperatorInstanceID instanceID,
Map<OperatorInstanceID,List<OperatorStateHandle>> subManagedOperatorState,
Map<OperatorInstanceID,List<OperatorStateHandle>> subRawOperatorState,
Map<OperatorInstanceID,List<KeyedStateHandle>> subManagedKeyedState,
Map<OperatorInstanceID,List<KeyedStateHandle>> subRawKeyedState) |
static OperatorSubtaskState |
StateAssignmentOperation.operatorSubtaskStateFrom(OperatorInstanceID instanceID,
Map<OperatorInstanceID,List<OperatorStateHandle>> subManagedOperatorState,
Map<OperatorInstanceID,List<OperatorStateHandle>> subRawOperatorState,
Map<OperatorInstanceID,List<KeyedStateHandle>> subManagedKeyedState,
Map<OperatorInstanceID,List<KeyedStateHandle>> subRawKeyedState) |
static void |
StateAssignmentOperation.reDistributePartitionableStates(List<OperatorState> oldOperatorStates,
int newParallelism,
List<OperatorID> newOperatorIDs,
Map<OperatorInstanceID,List<OperatorStateHandle>> newManagedOperatorStates,
Map<OperatorInstanceID,List<OperatorStateHandle>> newRawOperatorStates) |
static void |
StateAssignmentOperation.reDistributePartitionableStates(List<OperatorState> oldOperatorStates,
int newParallelism,
List<OperatorID> newOperatorIDs,
Map<OperatorInstanceID,List<OperatorStateHandle>> newManagedOperatorStates,
Map<OperatorInstanceID,List<OperatorStateHandle>> newRawOperatorStates) |
List<List<OperatorStateHandle>> |
OperatorStateRepartitioner.repartitionState(List<List<OperatorStateHandle>> previousParallelSubtaskStates,
int oldParallelism,
int newParallelism) |
List<List<OperatorStateHandle>> |
RoundRobinOperatorStateRepartitioner.repartitionState(List<List<OperatorStateHandle>> previousParallelSubtaskStates,
int oldParallelism,
int newParallelism) |
| Constructor and Description |
|---|
OperatorSubtaskState(OperatorStateHandle managedOperatorState,
OperatorStateHandle rawOperatorState,
KeyedStateHandle managedKeyedState,
KeyedStateHandle rawKeyedState)
For convenience because the size of the collections is typically 0 or 1.
|
| Modifier and Type | Method and Description |
|---|---|
static OperatorStateHandle |
SavepointV1Serializer.deserializeOperatorStateHandle(DataInputStream dis) |
static OperatorStateHandle |
SavepointV2Serializer.deserializeOperatorStateHandle(DataInputStream dis) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SavepointV1Serializer.serializeOperatorStateHandle(OperatorStateHandle stateHandle,
DataOutputStream dos) |
static void |
SavepointV2Serializer.serializeOperatorStateHandle(OperatorStateHandle stateHandle,
DataOutputStream dos) |
| Modifier and Type | Class and Description |
|---|---|
class |
OperatorStreamStateHandle
State handle for partitionable operator state.
|
| Modifier and Type | Field and Description |
|---|---|
protected Collection<OperatorStateHandle> |
DefaultOperatorStateBackendBuilder.restoreStateHandles
State handles for restore.
|
| Modifier and Type | Method and Description |
|---|---|
RunnableFuture<SnapshotResult<OperatorStateHandle>> |
StateSnapshotContextSynchronousImpl.getOperatorStateStreamFuture() |
RunnableFuture<SnapshotResult<OperatorStateHandle>> |
DefaultOperatorStateBackend.snapshot(long checkpointId,
long timestamp,
CheckpointStreamFactory streamFactory,
CheckpointOptions checkpointOptions) |
| Modifier and Type | Method and Description |
|---|---|
abstract OperatorStateBackend |
AbstractStateBackend.createOperatorStateBackend(Environment env,
String operatorIdentifier,
Collection<OperatorStateHandle> stateHandles,
org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry) |
OperatorStateBackend |
StateBackend.createOperatorStateBackend(Environment env,
String operatorIdentifier,
Collection<OperatorStateHandle> stateHandles,
org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry)
Creates a new
OperatorStateBackend that can be used for storing operator state. |
| Constructor and Description |
|---|
DefaultOperatorStateBackend(org.apache.flink.api.common.ExecutionConfig executionConfig,
org.apache.flink.core.fs.CloseableRegistry closeStreamOnCancelRegistry,
Map<String,PartitionableListState<?>> registeredOperatorStates,
Map<String,BackendWritableBroadcastState<?,?>> registeredBroadcastStates,
Map<String,PartitionableListState<?>> accessedStatesByName,
Map<String,BackendWritableBroadcastState<?,?>> accessedBroadcastStatesByName,
AbstractSnapshotStrategy<OperatorStateHandle> snapshotStrategy) |
DefaultOperatorStateBackendBuilder(ClassLoader userClassloader,
org.apache.flink.api.common.ExecutionConfig executionConfig,
boolean asynchronousSnapshots,
Collection<OperatorStateHandle> stateHandles,
org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry) |
OperatorStateRestoreOperation(org.apache.flink.core.fs.CloseableRegistry closeStreamOnCancelRegistry,
ClassLoader userClassloader,
Map<String,PartitionableListState<?>> registeredOperatorStates,
Map<String,BackendWritableBroadcastState<?,?>> registeredBroadcastStates,
Collection<OperatorStateHandle> stateHandles) |
| Modifier and Type | Method and Description |
|---|---|
OperatorStateBackend |
FsStateBackend.createOperatorStateBackend(Environment env,
String operatorIdentifier,
Collection<OperatorStateHandle> stateHandles,
org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry) |
| Modifier and Type | Method and Description |
|---|---|
OperatorStateBackend |
MemoryStateBackend.createOperatorStateBackend(Environment env,
String operatorIdentifier,
Collection<OperatorStateHandle> stateHandles,
org.apache.flink.core.fs.CloseableRegistry cancelStreamRegistry) |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.