Package org.apache.flink.runtime.state
Interface OperatorStateHandle
-
- All Superinterfaces:
Serializable
,StateObject
,StreamStateHandle
- All Known Implementing Classes:
EmptyFileMergingOperatorStreamStateHandle
,FileMergingOperatorStreamStateHandle
,OperatorStreamStateHandle
public interface OperatorStateHandle extends StreamStateHandle
Interface of a state handle for operator state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OperatorStateHandle.Mode
The modes that determine how anOperatorStreamStateHandle
is assigned to tasks during restore.static class
OperatorStateHandle.StateMetaInfo
Meta information about the operator state handle.-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateObject
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StreamStateHandle
getDelegateStateHandle()
Returns the underlying stream state handle that points to the state data.Map<String,OperatorStateHandle.StateMetaInfo>
getStateNameToPartitionOffsets()
Returns a map of meta data for all contained states by their name.org.apache.flink.core.fs.FSDataInputStream
openInputStream()
Returns an input stream to read the operator state information.-
Methods inherited from interface org.apache.flink.runtime.state.StateObject
collectSizeStats, discardState, getStateSize
-
Methods inherited from interface org.apache.flink.runtime.state.StreamStateHandle
asBytesIfInMemory, getStreamStateHandleID, maybeGetPath
-
-
-
-
Method Detail
-
getStateNameToPartitionOffsets
Map<String,OperatorStateHandle.StateMetaInfo> getStateNameToPartitionOffsets()
Returns a map of meta data for all contained states by their name.
-
openInputStream
org.apache.flink.core.fs.FSDataInputStream openInputStream() throws IOException
Returns an input stream to read the operator state information.- Specified by:
openInputStream
in interfaceStreamStateHandle
- Throws:
IOException
-
getDelegateStateHandle
StreamStateHandle getDelegateStateHandle()
Returns the underlying stream state handle that points to the state data.
-
-