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