public class StateSnapshotContextSynchronousImpl extends Object implements StateSnapshotContext
| Modifier and Type | Field and Description |
|---|---|
protected RunnableFuture<SnapshotResult<KeyedStateHandle>> |
keyedStateCheckpointClosingFuture |
protected RunnableFuture<SnapshotResult<OperatorStateHandle>> |
operatorStateCheckpointClosingFuture |
| Constructor and Description |
|---|
StateSnapshotContextSynchronousImpl(long checkpointId,
long checkpointTimestamp) |
StateSnapshotContextSynchronousImpl(long checkpointId,
long checkpointTimestamp,
CheckpointStreamFactory streamFactory,
KeyGroupRange keyGroupRange,
org.apache.flink.core.fs.CloseableRegistry closableRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeExceptionally() |
long |
getCheckpointId()
Returns the ID of the checkpoint for which the snapshot is taken.
|
long |
getCheckpointTimestamp()
Returns timestamp (wall clock time) when the master node triggered the checkpoint for which
the state snapshot is taken.
|
RunnableFuture<SnapshotResult<KeyedStateHandle>> |
getKeyedStateStreamFuture() |
RunnableFuture<SnapshotResult<OperatorStateHandle>> |
getOperatorStateStreamFuture() |
KeyedStateCheckpointOutputStream |
getRawKeyedOperatorStateOutput()
Returns an output stream for keyed state
|
OperatorStateCheckpointOutputStream |
getRawOperatorStateOutput()
Returns an output stream for operator state
|
protected RunnableFuture<SnapshotResult<KeyedStateHandle>> keyedStateCheckpointClosingFuture
protected RunnableFuture<SnapshotResult<OperatorStateHandle>> operatorStateCheckpointClosingFuture
@VisibleForTesting
public StateSnapshotContextSynchronousImpl(long checkpointId,
long checkpointTimestamp)
public StateSnapshotContextSynchronousImpl(long checkpointId,
long checkpointTimestamp,
CheckpointStreamFactory streamFactory,
KeyGroupRange keyGroupRange,
org.apache.flink.core.fs.CloseableRegistry closableRegistry)
public long getCheckpointId()
ManagedSnapshotContextThe checkpoint ID is guaranteed to be strictly monotonously increasing across checkpoints.
For two completed checkpoints A and B, ID_B > ID_A means that
checkpoint B subsumes checkpoint A, i.e., checkpoint B contains a later
state than checkpoint A.
getCheckpointId in interface ManagedSnapshotContextpublic long getCheckpointTimestamp()
ManagedSnapshotContextgetCheckpointTimestamp in interface ManagedSnapshotContextpublic KeyedStateCheckpointOutputStream getRawKeyedOperatorStateOutput() throws Exception
StateSnapshotContextgetRawKeyedOperatorStateOutput in interface StateSnapshotContextExceptionpublic OperatorStateCheckpointOutputStream getRawOperatorStateOutput() throws Exception
StateSnapshotContextgetRawOperatorStateOutput in interface StateSnapshotContextException@Nonnull public RunnableFuture<SnapshotResult<KeyedStateHandle>> getKeyedStateStreamFuture() throws IOException
IOException@Nonnull public RunnableFuture<SnapshotResult<OperatorStateHandle>> getOperatorStateStreamFuture() throws IOException
IOExceptionpublic void closeExceptionally()
throws IOException
IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.