public class SnapshottableDirectoryStatus extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshottableDirectoryStatus.Bean |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<SnapshottableDirectoryStatus> |
COMPARATOR
Compare the statuses by full paths.
|
| Constructor and Description |
|---|
SnapshottableDirectoryStatus(org.apache.hadoop.hdfs.protocol.HdfsFileStatus dirStatus,
int snapshotNumber,
int snapshotQuota,
byte[] parentFullPath) |
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) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hdfs.protocol.HdfsFileStatus |
getDirStatus() |
org.apache.hadoop.fs.Path |
getFullPath() |
byte[] |
getParentFullPath() |
int |
getSnapshotNumber() |
int |
getSnapshotQuota() |
static void |
print(SnapshottableDirectoryStatus[] stats,
PrintStream out)
Print a list of
SnapshottableDirectoryStatus out to a given stream. |
public static final Comparator<SnapshottableDirectoryStatus> COMPARATOR
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)
public SnapshottableDirectoryStatus(org.apache.hadoop.hdfs.protocol.HdfsFileStatus dirStatus,
int snapshotNumber,
int snapshotQuota,
byte[] parentFullPath)
public int getSnapshotNumber()
public int getSnapshotQuota()
public byte[] getParentFullPath()
public org.apache.hadoop.hdfs.protocol.HdfsFileStatus getDirStatus()
public org.apache.hadoop.fs.Path getFullPath()
public static void print(SnapshottableDirectoryStatus[] stats, PrintStream out)
SnapshottableDirectoryStatus out to a given stream.stats - The list of SnapshottableDirectoryStatusout - The given stream for printing.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.