java.lang.Object
org.apache.flink.runtime.checkpoint.filemerging.PhysicalFile

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

  • Method Details

    • 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()
    • close

      public void close() throws IOException
      Throws:
      IOException
    • 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()
    • getScope

      public CheckpointedStateScope getScope()
    • isOwned

      public boolean isOwned()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object