public class StateInitializationContextImpl extends Object implements StateInitializationContext
StateInitializationContext.| 构造器和说明 |
|---|
StateInitializationContextImpl(Long restoredCheckpointId,
org.apache.flink.api.common.state.OperatorStateStore operatorStateStore,
org.apache.flink.api.common.state.KeyedStateStore keyedStateStore,
Iterable<KeyGroupStatePartitionStreamProvider> rawKeyedStateInputs,
Iterable<StatePartitionStreamProvider> rawOperatorStateInputs) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.api.common.state.KeyedStateStore |
getKeyedStateStore()
Returns an interface that allows for registering keyed state with the backend.
|
org.apache.flink.api.common.state.OperatorStateStore |
getOperatorStateStore()
Returns an interface that allows for registering operator state with the backend.
|
Iterable<KeyGroupStatePartitionStreamProvider> |
getRawKeyedStateInputs()
Returns an iterable to obtain input streams for previously stored keyed state partitions that
are assigned to this operator.
|
Iterable<StatePartitionStreamProvider> |
getRawOperatorStateInputs()
Returns an iterable to obtain input streams for previously stored operator state partitions
that are assigned to this operator.
|
OptionalLong |
getRestoredCheckpointId()
Returns id of the restored checkpoint, if state was restored from the snapshot of a previous
execution.
|
boolean |
isRestored()
Returns true, if state was restored from the snapshot of a previous execution.
|
public StateInitializationContextImpl(@Nullable Long restoredCheckpointId, org.apache.flink.api.common.state.OperatorStateStore operatorStateStore, org.apache.flink.api.common.state.KeyedStateStore keyedStateStore, Iterable<KeyGroupStatePartitionStreamProvider> rawKeyedStateInputs, Iterable<StatePartitionStreamProvider> rawOperatorStateInputs)
public boolean isRestored()
ManagedInitializationContextisRestored 在接口中 ManagedInitializationContextpublic OptionalLong getRestoredCheckpointId()
ManagedInitializationContextpublic Iterable<StatePartitionStreamProvider> getRawOperatorStateInputs()
StateInitializationContextpublic Iterable<KeyGroupStatePartitionStreamProvider> getRawKeyedStateInputs()
StateInitializationContextpublic org.apache.flink.api.common.state.OperatorStateStore getOperatorStateStore()
ManagedInitializationContextpublic org.apache.flink.api.common.state.KeyedStateStore getKeyedStateStore()
ManagedInitializationContextCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.