Class EmptySegmentFileStateHandle
- java.lang.Object
-
- org.apache.flink.runtime.state.filemerging.SegmentFileStateHandle
-
- org.apache.flink.runtime.state.filemerging.EmptySegmentFileStateHandle
-
- All Implemented Interfaces:
Serializable
,StateObject
,StreamStateHandle
public class EmptySegmentFileStateHandle extends SegmentFileStateHandle
An emptySegmentFileStateHandle
that is only used as a placeholder.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateObject
StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector
-
-
Field Summary
Fields Modifier and Type Field Description static EmptySegmentFileStateHandle
INSTANCE
-
Fields inherited from class org.apache.flink.runtime.state.filemerging.SegmentFileStateHandle
stateSize
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.core.fs.FSDataInputStream
openInputStream()
Returns anFSDataInputStream
that can be used to read back the data that was previously written to the stream.-
Methods inherited from class org.apache.flink.runtime.state.filemerging.SegmentFileStateHandle
asBytesIfInMemory, collectSizeStats, discardState, equals, getFilePath, getLogicalFileId, getScope, getStartPos, getStateSize, getStreamStateHandleID, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.state.StreamStateHandle
maybeGetPath
-
-
-
-
Field Detail
-
INSTANCE
public static final EmptySegmentFileStateHandle INSTANCE
-
-
Method Detail
-
openInputStream
public org.apache.flink.core.fs.FSDataInputStream openInputStream() throws IOException
Description copied from interface:StreamStateHandle
Returns anFSDataInputStream
that can be used to read back the data that was previously written to the stream.- Specified by:
openInputStream
in interfaceStreamStateHandle
- Overrides:
openInputStream
in classSegmentFileStateHandle
- Throws:
IOException
-
-