Package org.apache.flink.runtime.state
Interface OperatorStateHandle
- All Superinterfaces:
Serializable,StateObject,StreamStateHandle
- All Known Implementing Classes:
EmptyFileMergingOperatorStreamStateHandle,FileMergingOperatorStreamStateHandle,OperatorStreamStateHandle
Interface of a state handle for operator state.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe modes that determine how anOperatorStreamStateHandleis assigned to tasks during restore.static classMeta information about the operator state handle.Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateObject
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlying stream state handle that points to the state data.Returns a map of meta data for all contained states by their name.org.apache.flink.core.fs.FSDataInputStreamReturns an input stream to read the operator state information.Methods inherited from interface org.apache.flink.runtime.state.StateObject
collectSizeStats, discardState, getStateSizeMethods inherited from interface org.apache.flink.runtime.state.StreamStateHandle
asBytesIfInMemory, getStreamStateHandleID, maybeGetPath
-
Method Details
-
getStateNameToPartitionOffsets
Map<String,OperatorStateHandle.StateMetaInfo> getStateNameToPartitionOffsets()Returns a map of meta data for all contained states by their name. -
openInputStream
Returns an input stream to read the operator state information.- Specified by:
openInputStreamin interfaceStreamStateHandle- Throws:
IOException
-
getDelegateStateHandle
StreamStateHandle getDelegateStateHandle()Returns the underlying stream state handle that points to the state data.
-