@Internal public class RecoverableStreamWrapper extends MetadataOutputStreamWrapper
MetadataOutputStreamWrapper encapsulates the RecoverableFsDataOutputStream for FsCheckpointMetadataOutputStream.| Constructor and Description |
|---|
RecoverableStreamWrapper(org.apache.flink.core.fs.RecoverableFsDataOutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
The abstract function of aborting temporary files or doing nothing, which depends on the
different output stream implementations.
|
void |
closeAction()
The abstract function of once closing output stream operation.
|
void |
closeForCommitAction()
The abstract function of once closing output stream and committing operation.
|
org.apache.flink.core.fs.FSDataOutputStream |
getOutput()
Returns
FSDataOutputStream to write and other operations. |
public RecoverableStreamWrapper(org.apache.flink.core.fs.RecoverableFsDataOutputStream out)
public org.apache.flink.core.fs.FSDataOutputStream getOutput()
MetadataOutputStreamWrapperFSDataOutputStream to write and other operations.public void closeForCommitAction()
throws IOException
MetadataOutputStreamWrapperIOException when failed and should be invoked by closeForCommit() indirectly
instead of this function.IOExceptionpublic void closeAction()
throws IOException
MetadataOutputStreamWrapperIOException when failed and should be invoked by close() indirectly instead of this
function.IOExceptionpublic void cleanup()
throws IOException
MetadataOutputStreamWrapperIOException when failed.IOExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.