@Internal public abstract class BaseHadoopFsRecoverableFsDataOutputStream extends org.apache.flink.core.fs.CommitterFromPersistRecoverableFsDataOutputStream<HadoopFsRecoverable>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.fs.FileSystem |
fs |
protected long |
initialFileSize |
protected org.apache.hadoop.fs.FSDataOutputStream |
out |
protected org.apache.hadoop.fs.Path |
targetFile |
protected org.apache.hadoop.fs.Path |
tempFile |
| Constructor and Description |
|---|
BaseHadoopFsRecoverableFsDataOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HadoopFsRecoverable |
createHadoopFsRecoverable(long pos) |
void |
flush() |
long |
getPos() |
HadoopFsRecoverable |
persist() |
void |
sync() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
closeForCommit, createCommitterFromResumeRecoverablewriteprotected org.apache.hadoop.fs.FileSystem fs
protected org.apache.hadoop.fs.Path targetFile
protected org.apache.hadoop.fs.Path tempFile
protected org.apache.hadoop.fs.FSDataOutputStream out
protected long initialFileSize
public BaseHadoopFsRecoverableFsDataOutputStream()
public long getPos()
throws IOException
getPos in class org.apache.flink.core.fs.FSDataOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class org.apache.flink.core.fs.FSDataOutputStreamIOExceptionpublic void sync()
throws IOException
sync in class org.apache.flink.core.fs.FSDataOutputStreamIOExceptionpublic HadoopFsRecoverable persist() throws IOException
persist in class org.apache.flink.core.fs.CommitterFromPersistRecoverableFsDataOutputStream<HadoopFsRecoverable>IOExceptionpublic HadoopFsRecoverable createHadoopFsRecoverable(long pos)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.flink.core.fs.RecoverableFsDataOutputStreamIOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.