Interface FileMergingCheckpointStateOutputStream.FileMergingSnapshotManagerProxy
-
- Enclosing class:
- FileMergingCheckpointStateOutputStream
public static interface FileMergingCheckpointStateOutputStream.FileMergingSnapshotManagerProxyA proxy of theFileMergingSnapshotManagerthat owns thisFileMergingCheckpointStateOutputStream, with the interfaces for dealing with physical files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SegmentFileStateHandlecloseStreamAndCreateStateHandle(org.apache.flink.core.fs.Path filePath, long startPos, long stateSize)Close the stream and create aSegmentFileStateHandlefor a file segment.voidcloseStreamExceptionally()Notify theFileMergingSnapshotManagerthat the stream is closed exceptionally.org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.core.fs.FSDataOutputStream,org.apache.flink.core.fs.Path>providePhysicalFile()Provide a physical file.
-
-
-
Method Detail
-
providePhysicalFile
org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.core.fs.FSDataOutputStream,org.apache.flink.core.fs.Path> providePhysicalFile() throws IOExceptionProvide a physical file.- Returns:
- Output stream and path of the physical file.
- Throws:
IOException- if the physical file cannot be created or opened.
-
closeStreamAndCreateStateHandle
SegmentFileStateHandle closeStreamAndCreateStateHandle(org.apache.flink.core.fs.Path filePath, long startPos, long stateSize) throws IOException
Close the stream and create aSegmentFileStateHandlefor a file segment.- Parameters:
filePath- Path of the physical file.startPos- Start position of the segment in the physical file.stateSize- Size of the segment.- Returns:
- The state handle of the segment.
- Throws:
IOException- if any exception happens when closing the file.
-
closeStreamExceptionally
void closeStreamExceptionally() throws IOExceptionNotify theFileMergingSnapshotManagerthat the stream is closed exceptionally.- Throws:
IOException- if any exception happens when deleting the file.
-
-