public class StateSnapshotContextSynchronousImpl extends Object implements StateSnapshotContext
| 限定符和类型 | 字段和说明 |
|---|---|
protected RunnableFuture<SnapshotResult<KeyedStateHandle>> |
keyedStateCheckpointClosingFuture |
protected RunnableFuture<SnapshotResult<OperatorStateHandle>> |
operatorStateCheckpointClosingFuture |
| 构造器和说明 |
|---|
StateSnapshotContextSynchronousImpl(long checkpointId,
long checkpointTimestamp) |
StateSnapshotContextSynchronousImpl(long checkpointId,
long checkpointTimestamp,
CheckpointStreamFactory streamFactory,
KeyGroupRange keyGroupRange,
org.apache.flink.core.fs.CloseableRegistry closableRegistry) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ManagedSnapshotContextpublic long getCheckpointTimestamp()
ManagedSnapshotContextgetCheckpointTimestamp 在接口中 ManagedSnapshotContextpublic KeyedStateCheckpointOutputStream getRawKeyedOperatorStateOutput() throws Exception
StateSnapshotContextgetRawKeyedOperatorStateOutput 在接口中 StateSnapshotContextExceptionpublic OperatorStateCheckpointOutputStream getRawOperatorStateOutput() throws Exception
StateSnapshotContextgetRawOperatorStateOutput 在接口中 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–2023 The Apache Software Foundation. All rights reserved.