public class SnapshotStatus extends Object
Constructor and Description |
---|
SnapshotStatus(org.apache.hadoop.hdfs.protocol.HdfsFileStatus dirStatus,
int snapshotID,
boolean isDeleted,
byte[] parentFullPath) |
SnapshotStatus(long modificationTime,
long accessTime,
org.apache.hadoop.fs.permission.FsPermission permission,
EnumSet<HdfsFileStatus.Flags> flags,
String owner,
String group,
byte[] localName,
long inodeId,
int childrenNum,
int snapshotID,
boolean isDeleted,
byte[] parentFullPath) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hdfs.protocol.HdfsFileStatus |
getDirStatus() |
org.apache.hadoop.fs.Path |
getFullPath() |
byte[] |
getParentFullPath() |
static String |
getParentPath(String snapshotPath) |
int |
getSnapshotID() |
static String |
getSnapshotPath(String snapshottableDir,
String snapshotRelativePath) |
boolean |
isDeleted() |
static void |
print(SnapshotStatus[] stats,
PrintStream out)
Print a list of
SnapshotStatus out to a given stream. |
void |
setParentFullPath(byte[] path)
sets the path name.
|
public SnapshotStatus(long modificationTime, long accessTime, org.apache.hadoop.fs.permission.FsPermission permission, EnumSet<HdfsFileStatus.Flags> flags, String owner, String group, byte[] localName, long inodeId, int childrenNum, int snapshotID, boolean isDeleted, byte[] parentFullPath)
public SnapshotStatus(org.apache.hadoop.hdfs.protocol.HdfsFileStatus dirStatus, int snapshotID, boolean isDeleted, byte[] parentFullPath)
public void setParentFullPath(byte[] path)
path
- pathpublic int getSnapshotID()
public boolean isDeleted()
public org.apache.hadoop.hdfs.protocol.HdfsFileStatus getDirStatus()
public byte[] getParentFullPath()
public org.apache.hadoop.fs.Path getFullPath()
public static void print(SnapshotStatus[] stats, PrintStream out)
SnapshotStatus
out to a given stream.stats
- The list of SnapshotStatus
out
- The given stream for printing.public static String getSnapshotPath(String snapshottableDir, String snapshotRelativePath)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.