Class SnapshottableDirectoryStatus

java.lang.Object
org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus

public class SnapshottableDirectoryStatus extends Object
Metadata about a snapshottable directory
  • Field Details

  • Constructor Details

    • SnapshottableDirectoryStatus

      public SnapshottableDirectoryStatus(long modification_time, long access_time, org.apache.hadoop.fs.permission.FsPermission permission, EnumSet<HdfsFileStatus.Flags> flags, String owner, String group, byte[] localName, long inodeId, int childrenNum, int snapshotNumber, int snapshotQuota, byte[] parentFullPath)
    • SnapshottableDirectoryStatus

      public SnapshottableDirectoryStatus(HdfsFileStatus dirStatus, int snapshotNumber, int snapshotQuota, byte[] parentFullPath)
  • Method Details

    • getSnapshotNumber

      public int getSnapshotNumber()
      Returns:
      Number of snapshots that have been taken for the directory
    • getSnapshotQuota

      public int getSnapshotQuota()
      Returns:
      Number of snapshots allowed for the directory
    • getParentFullPath

      public byte[] getParentFullPath()
      Returns:
      Full path of the parent
    • getDirStatus

      public HdfsFileStatus getDirStatus()
      Returns:
      The basic information of the directory
    • getFullPath

      public org.apache.hadoop.fs.Path getFullPath()
      Returns:
      Full path of the file
    • print

      public static void print(SnapshottableDirectoryStatus[] stats, PrintStream out)
      Print a list of SnapshottableDirectoryStatus out to a given stream.
      Parameters:
      stats - The list of SnapshottableDirectoryStatus
      out - The given stream for printing.