Class FileStatus

Object
io.delta.kernel.utils.FileStatus
Direct Known Subclasses:
DataFileStatus

@Evolving public class FileStatus extends Object
Class for encapsulating metadata about a file in Delta Lake table.
Since:
3.0.0
  • Method Details

    • getPath

      public String getPath()
      Get the path to the file.
      Returns:
      Fully qualified file path
    • getSize

      public long getSize()
      Get the size of the file in bytes.
      Returns:
      File size in bytes.
    • getModificationTime

      public long getModificationTime()
      Get the modification time of the file in epoch millis.
      Returns:
      Modification time in epoch millis
    • of

      public static FileStatus of(String path, long size, long modificationTime)
      Create a FileStatus with the given path, size and modification time.
      Parameters:
      path - Fully qualified file path.
      size - File size in bytes
      modificationTime - Modification time of the file in epoch millis