public class AzureBlobRecoverableWriter extends HadoopRecoverableWriter
RecoverableWriter.CommitRecoverable, RecoverableWriter.ResumeRecoverable
fs
Constructor and Description |
---|
AzureBlobRecoverableWriter(org.apache.hadoop.fs.FileSystem fs)
Creates a new Recoverable writer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkSupportedFSSchemes(org.apache.hadoop.fs.FileSystem fs) |
protected RecoverableFsDataOutputStream |
getRecoverableFsDataOutputStream(org.apache.hadoop.fs.Path targetFile,
org.apache.hadoop.fs.Path tempFile) |
RecoverableFsDataOutputStream |
recover(RecoverableWriter.ResumeRecoverable recoverable)
Resumes a recoverable stream consistently at the point indicated by the given
ResumeRecoverable.
|
RecoverableFsDataOutputStream.Committer |
recoverForCommit(RecoverableWriter.CommitRecoverable recoverable)
Recovers a recoverable stream consistently at the point indicated by the given
CommitRecoverable for finalizing and committing.
|
cleanupRecoverableState, getCommitRecoverableSerializer, getResumeRecoverableSerializer, open, requiresCleanupOfRecoverableState, supportsResume
public AzureBlobRecoverableWriter(org.apache.hadoop.fs.FileSystem fs)
fs
- The AzureBlob file system on which the writer operates.protected void checkSupportedFSSchemes(org.apache.hadoop.fs.FileSystem fs)
checkSupportedFSSchemes
in class HadoopRecoverableWriter
protected RecoverableFsDataOutputStream getRecoverableFsDataOutputStream(org.apache.hadoop.fs.Path targetFile, org.apache.hadoop.fs.Path tempFile) throws IOException
getRecoverableFsDataOutputStream
in class HadoopRecoverableWriter
IOException
public RecoverableFsDataOutputStream recover(RecoverableWriter.ResumeRecoverable recoverable) throws IOException
RecoverableWriter
This method is optional and whether it is supported is indicated through the RecoverableWriter.supportsResume()
method.
recover
in interface RecoverableWriter
recover
in class HadoopRecoverableWriter
recoverable
- The opaque handle with the recovery information.IOException
- Thrown, if resuming fails.public RecoverableFsDataOutputStream.Committer recoverForCommit(RecoverableWriter.CommitRecoverable recoverable) throws IOException
RecoverableWriter
recoverForCommit
in interface RecoverableWriter
recoverForCommit
in class HadoopRecoverableWriter
recoverable
- The opaque handle with the recovery information.IOException
- Thrown, if recovery fails.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.