Package org.apache.flink.runtime.state
Class StateInitializationContextImpl
java.lang.Object
org.apache.flink.runtime.state.StateInitializationContextImpl
- All Implemented Interfaces:
FunctionInitializationContext,ManagedInitializationContext,StateInitializationContext
Default implementation of
StateInitializationContext.-
Constructor Summary
ConstructorsConstructorDescriptionStateInitializationContextImpl(Long restoredCheckpointId, org.apache.flink.api.common.state.OperatorStateStore operatorStateStore, org.apache.flink.api.common.state.KeyedStateStore keyedStateStore, Iterable<KeyGroupStatePartitionStreamProvider> rawKeyedStateInputs, Iterable<StatePartitionStreamProvider> rawOperatorStateInputs) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.state.KeyedStateStoreReturns an interface that allows for registering keyed state with the backend.org.apache.flink.api.common.state.OperatorStateStoreReturns an interface that allows for registering operator state with the backend.Returns an iterable to obtain input streams for previously stored keyed state partitions that are assigned to this operator.Returns an iterable to obtain input streams for previously stored operator state partitions that are assigned to this operator.Returns id of the restored checkpoint, if state was restored from the snapshot of a previous execution.booleanReturns true, if state was restored from the snapshot of a previous execution.
-
Constructor Details
-
StateInitializationContextImpl
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)
-
-
Method Details
-
isRestored
public boolean isRestored()Description copied from interface:ManagedInitializationContextReturns true, if state was restored from the snapshot of a previous execution.- Specified by:
isRestoredin interfaceManagedInitializationContext
-
getRestoredCheckpointId
Description copied from interface:ManagedInitializationContextReturns id of the restored checkpoint, if state was restored from the snapshot of a previous execution.- Specified by:
getRestoredCheckpointIdin interfaceManagedInitializationContext
-
getRawOperatorStateInputs
Description copied from interface:StateInitializationContextReturns an iterable to obtain input streams for previously stored operator state partitions that are assigned to this operator.- Specified by:
getRawOperatorStateInputsin interfaceStateInitializationContext
-
getRawKeyedStateInputs
Description copied from interface:StateInitializationContextReturns an iterable to obtain input streams for previously stored keyed state partitions that are assigned to this operator.- Specified by:
getRawKeyedStateInputsin interfaceStateInitializationContext
-
getOperatorStateStore
public org.apache.flink.api.common.state.OperatorStateStore getOperatorStateStore()Description copied from interface:ManagedInitializationContextReturns an interface that allows for registering operator state with the backend.- Specified by:
getOperatorStateStorein interfaceManagedInitializationContext
-
getKeyedStateStore
public org.apache.flink.api.common.state.KeyedStateStore getKeyedStateStore()Description copied from interface:ManagedInitializationContextReturns an interface that allows for registering keyed state with the backend.- Specified by:
getKeyedStateStorein interfaceManagedInitializationContext
-