Package org.apache.flink.runtime.fs.hdfs
Class BaseHadoopFsRecoverableFsDataOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.flink.core.fs.FSDataOutputStream
-
- org.apache.flink.core.fs.RecoverableFsDataOutputStream
-
- org.apache.flink.core.fs.CommitterFromPersistRecoverableFsDataOutputStream<HadoopFsRecoverable>
-
- org.apache.flink.runtime.fs.hdfs.BaseHadoopFsRecoverableFsDataOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@Internal public abstract class BaseHadoopFsRecoverableFsDataOutputStream extends org.apache.flink.core.fs.CommitterFromPersistRecoverableFsDataOutputStream<HadoopFsRecoverable>
Base class for ABFS and Hadoop recoverable stream.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.hadoop.fs.FileSystemfsprotected longinitialFileSizeprotected org.apache.hadoop.fs.FSDataOutputStreamoutprotected org.apache.hadoop.fs.PathtargetFileprotected org.apache.hadoop.fs.PathtempFile
-
Constructor Summary
Constructors Constructor Description BaseHadoopFsRecoverableFsDataOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()HadoopFsRecoverablecreateHadoopFsRecoverable(long pos)voidflush()longgetPos()HadoopFsRecoverablepersist()voidsync()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class org.apache.flink.core.fs.CommitterFromPersistRecoverableFsDataOutputStream
closeForCommit, createCommitterFromResumeRecoverable
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Method Detail
-
getPos
public long getPos() throws IOException- Specified by:
getPosin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
sync
public void sync() throws IOException- Specified by:
syncin classorg.apache.flink.core.fs.FSDataOutputStream- Throws:
IOException
-
persist
public HadoopFsRecoverable persist() throws IOException
- Specified by:
persistin classorg.apache.flink.core.fs.CommitterFromPersistRecoverableFsDataOutputStream<HadoopFsRecoverable>- Throws:
IOException
-
createHadoopFsRecoverable
public HadoopFsRecoverable createHadoopFsRecoverable(long pos)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.flink.core.fs.RecoverableFsDataOutputStream- Throws:
IOException
-
-