INode.FeatureDirectorySnapshottableFeature@Private public class DirectoryWithSnapshotFeature extends java.lang.Object implements INode.Feature
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DirectoryWithSnapshotFeature.DirectoryDiff |
The difference of an
INodeDirectory between two snapshots. |
static class |
DirectoryWithSnapshotFeature.DirectoryDiffList |
A list of directory diffs.
|
| Constructor | Description |
|---|---|
DirectoryWithSnapshotFeature(DirectoryWithSnapshotFeature.DirectoryDiffList diffs) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addChild(INodeDirectory parent,
INode inode,
boolean setModTime,
int latestSnapshotId) |
Add an inode into parent's children list.
|
void |
cleanDirectory(INode.ReclaimContext reclaimContext,
INodeDirectory currentINode,
int snapshot,
int prior) |
|
void |
clear(INode.ReclaimContext reclaimContext,
INodeDirectory currentINode) |
|
void |
computeContentSummary4Snapshot(BlockStoragePolicySuite bsps,
ContentCounts counts) |
|
QuotaCounts |
computeQuotaUsage4CurrentDirectory(BlockStoragePolicySuite bsps,
byte storagePolicyId) |
|
static void |
destroyDstSubtree(INode.ReclaimContext reclaimContext,
INode inode,
int snapshot,
int prior) |
Destroy a subtree under a DstReference node.
|
INode |
getChild(INodeDirectory currentINode,
byte[] name,
int snapshotId) |
|
ReadOnlyList<INode> |
getChildrenList(INodeDirectory currentINode,
int snapshotId) |
|
DirectoryWithSnapshotFeature.DirectoryDiffList |
getDiffs() |
|
int |
getLastSnapshotId() |
|
void |
getSnapshotDirectory(java.util.List<INodeDirectory> snapshotDir) |
Get all the directories that are stored in some snapshot but not in the
current children list.
|
boolean |
removeChild(INodeDirectory parent,
INode child,
int latestSnapshotId) |
Remove an inode from parent's children list.
|
INode |
saveChild2Snapshot(INodeDirectory currentINode,
INode child,
int latestSnapshotId,
INode snapshotCopy) |
Used to record the modification of a symlink node
|
java.lang.String |
toString() |
public DirectoryWithSnapshotFeature(DirectoryWithSnapshotFeature.DirectoryDiffList diffs)
public static void destroyDstSubtree(INode.ReclaimContext reclaimContext, INode inode, int snapshot, int prior)
public int getLastSnapshotId()
public DirectoryWithSnapshotFeature.DirectoryDiffList getDiffs()
public void getSnapshotDirectory(java.util.List<INodeDirectory> snapshotDir)
public boolean addChild(INodeDirectory parent, INode inode, boolean setModTime, int latestSnapshotId)
public boolean removeChild(INodeDirectory parent, INode child, int latestSnapshotId)
public ReadOnlyList<INode> getChildrenList(INodeDirectory currentINode, int snapshotId)
public INode getChild(INodeDirectory currentINode, byte[] name, int snapshotId)
public INode saveChild2Snapshot(INodeDirectory currentINode, INode child, int latestSnapshotId, INode snapshotCopy)
public void clear(INode.ReclaimContext reclaimContext, INodeDirectory currentINode)
public QuotaCounts computeQuotaUsage4CurrentDirectory(BlockStoragePolicySuite bsps, byte storagePolicyId)
public void computeContentSummary4Snapshot(BlockStoragePolicySuite bsps, ContentCounts counts) throws org.apache.hadoop.security.AccessControlException
org.apache.hadoop.security.AccessControlExceptionpublic void cleanDirectory(INode.ReclaimContext reclaimContext, INodeDirectory currentINode, int snapshot, int prior)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.