Class FileInfoDTO

java.lang.Object
org.apache.gravitino.dto.file.FileInfoDTO
All Implemented Interfaces:
FileInfo

public class FileInfoDTO extends Object implements FileInfo
Represents a FileInfo DTO (Data Transfer Object).
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface FileInfo
      Returns:
      The filename or directory name of file object.
    • isDir

      public boolean isDir()
      Specified by:
      isDir in interface FileInfo
      Returns:
      Whether this is a directory (true).
    • size

      public long size()
      Specified by:
      size in interface FileInfo
      Returns:
      The file size in bytes (0 if directory).
    • lastModified

      public long lastModified()
      Specified by:
      lastModified in interface FileInfo
      Returns:
      The last modification time as an Instant.
    • path

      public String path()
      Specified by:
      path in interface FileInfo
      Returns:
      The full path of the file or directory within the fileset.
    • builder

      public static FileInfoDTO.FileInfoDTOBuilder builder()
      Create a new FileInfoDTO builder.
      Returns:
      A new FileInfoDTO builder.