Class BaseHadoopFsRecoverableFsDataOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    @Internal
    public abstract class BaseHadoopFsRecoverableFsDataOutputStream
    extends org.apache.flink.core.fs.RecoverableFsDataOutputStream
    Base class for ABFS and Hadoop recoverable stream.
    • Field Detail

      • fs

        protected org.apache.hadoop.fs.FileSystem fs
      • targetFile

        protected org.apache.hadoop.fs.Path targetFile
      • tempFile

        protected org.apache.hadoop.fs.Path tempFile
      • out

        protected org.apache.hadoop.fs.FSDataOutputStream out
      • initialFileSize

        protected long initialFileSize
    • Constructor Detail

      • BaseHadoopFsRecoverableFsDataOutputStream

        public BaseHadoopFsRecoverableFsDataOutputStream()
    • Method Detail

      • getPos

        public long getPos()
                    throws IOException
        Specified by:
        getPos in class org.apache.flink.core.fs.FSDataOutputStream
        Throws:
        IOException
      • flush

        public void flush()
                   throws IOException
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in class org.apache.flink.core.fs.FSDataOutputStream
        Throws:
        IOException
      • sync

        public void sync()
                  throws IOException
        Specified by:
        sync in class org.apache.flink.core.fs.FSDataOutputStream
        Throws:
        IOException
      • persist

        public org.apache.flink.core.fs.RecoverableWriter.ResumeRecoverable persist()
                                                                             throws IOException
        Specified by:
        persist in class org.apache.flink.core.fs.RecoverableFsDataOutputStream
        Throws:
        IOException
      • closeForCommit

        public abstract org.apache.flink.core.fs.RecoverableFsDataOutputStream.Committer closeForCommit()
                                                                                                 throws IOException
        Specified by:
        closeForCommit in class org.apache.flink.core.fs.RecoverableFsDataOutputStream
        Throws:
        IOException