Class PhysicalFile


  • public class PhysicalFile
    extends Object
    An abstraction of physical files in file-merging checkpoints.
    • Method Detail

      • getOutputStream

        @Nullable
        public org.apache.flink.core.fs.FSDataOutputStream getOutputStream()
      • deleteIfNecessary

        public void deleteIfNecessary()
                               throws IOException
        Delete this physical file if there is no reference count from logical files (all discarded), and this physical file is closed (no further writing on it).
        Throws:
        IOException - if anything goes wrong with file system.
      • closed

        public boolean closed()
      • isOpen

        public boolean isOpen()
        Returns:
        whether this physical file is still open for writing.
      • isDeleted

        public boolean isDeleted()
      • getFilePath

        public org.apache.flink.core.fs.Path getFilePath()
      • isOwned

        public boolean isOwned()