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 classOperatorStateHandle.ModeThe modes that determine how anOperatorStreamStateHandleis assigned to tasks during restore.static classOperatorStateHandle.StateMetaInfoMeta 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 StreamStateHandlegetDelegateStateHandle()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.FSDataInputStreamopenInputStream()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 IOExceptionReturns 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.
-
-