| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.namenode | |
| org.apache.hadoop.hdfs.server.namenode.snapshot | |
| org.apache.hadoop.hdfs.server.namenode.visitor |
Use the visitor pattern to visit namespace tree.
|
| Modifier and Type | Method | Description |
|---|---|---|
INodeDirectory |
INode.asDirectory() |
Cast this inode to an
INodeDirectory. |
INodeDirectory |
INodeDirectory.asDirectory() |
|
INodeDirectory |
INodeReference.asDirectory() |
|
INodeDirectory |
INode.getParent() |
|
INodeDirectory |
FSDirectory.getRoot() |
|
static INodeDirectory |
FSImageFormatPBINode.Loader.loadINodeDirectory(FsImageProto.INodeSection.INode n,
FSImageFormatProtobuf.LoaderContext state) |
|
static INodeDirectory |
INodeDirectory.valueOf(INode inode,
java.lang.Object path) |
Cast INode to INodeDirectory.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<INodeDirectory,QuotaCounts> |
INode.QuotaDelta.getQuotaDirMap() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
INode.QuotaDelta.addQuotaDirUpdate(INodeDirectory dir,
QuotaCounts update) |
|
java.util.Set<INodesInPath> |
LeaseManager.getINodeWithLeases(INodeDirectory ancestorDir) |
Get
INodesInPath for all files under the ancestor directory which
has valid lease. |
boolean |
INode.isAncestorDirectory(INodeDirectory dir) |
|
boolean |
INodesInPath.isDescendant(INodeDirectory inodeDirectory) |
Verify if this
INodesInPath is a descendant of the
requested INodeDirectory. |
boolean |
INodeDirectory.isDescendantOfSnapshotRoot(INodeDirectory snapshotRootDir) |
Check if this directory is a descendant directory
of a snapshot root directory.
|
void |
INode.setParent(INodeDirectory parent) |
Set parent directory
|
protected void |
FSTreeTraverser.traverseDir(INodeDirectory parent,
long startId,
byte[] startAfter,
FSTreeTraverser.TraverseInfo traverseInfo) |
Iterate through all files directly inside parent, and recurse down
directories.
|
static void |
FSImageSerialization.writeINodeDirectory(INodeDirectory node,
java.io.DataOutput out) |
Serialize a
INodeDirectory |
| Constructor | Description |
|---|---|
CopyWithQuota(INodeDirectory dir) |
|
DstReference(INodeDirectory parent,
INodeReference.WithCount referred,
int dstSnapshotId) |
|
INodeDirectory(INodeDirectory other,
boolean adopt,
INode.Feature... featuresToCopy) |
Copy constructor
|
SnapshotCopy(INodeDirectory dir) |
|
WithName(INodeDirectory parent,
INodeReference.WithCount referred,
byte[] name,
int lastSnapshotId) |
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Snapshot.Root |
The root directory of the snapshot.
|
| Modifier and Type | Method | Description |
|---|---|---|
INodeDirectory |
SnapshotManager.checkAndGetSnapshottableAncestorDir(INodesInPath iip) |
Get the snapshot root directory for the given directory.
|
INodeDirectory |
SnapshotManager.getSnapshottableAncestorDir(INodesInPath iip) |
|
INodeDirectory |
SnapshotManager.getSnapshottableRoot(INodesInPath iip) |
Find the source root directory where the snapshot will be taken
for a given path.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
DirectoryWithSnapshotFeature.addChild(INodeDirectory parent,
INode inode,
boolean setModTime,
int latestSnapshotId) |
Add an inode into parent's children list.
|
Snapshot |
DirectorySnapshottableFeature.addSnapshot(INodeDirectory snapshotRoot,
SnapshotManager snapshotManager,
java.lang.String name,
LeaseManager leaseManager,
long now) |
Add a snapshot.
|
void |
SnapshotManager.addSnapshottable(INodeDirectory dir) |
Add the given snapshottable directory to
SnapshotManager.snapshottables. |
void |
DirectoryWithSnapshotFeature.cleanDirectory(INode.ReclaimContext reclaimContext,
INodeDirectory currentINode,
int snapshot,
int prior) |
|
void |
DirectoryWithSnapshotFeature.clear(INode.ReclaimContext reclaimContext,
INodeDirectory currentINode) |
|
void |
DirectorySnapshottableFeature.dumpTreeRecursively(INodeDirectory snapshotRoot,
java.io.PrintWriter out,
java.lang.StringBuilder prefix,
int snapshot) |
|
byte[][] |
DirectorySnapshottableFeature.findRenameTargetPath(INodeDirectory snapshotRoot,
INodeReference.WithName wn,
int snapshotId) |
We just found a deleted WithName node as the source of a rename operation.
|
INode |
DirectoryWithSnapshotFeature.getChild(INodeDirectory currentINode,
byte[] name,
int snapshotId) |
|
ReadOnlyList<INode> |
DirectoryWithSnapshotFeature.getChildrenList(INodeDirectory currentINode,
int snapshotId) |
|
java.util.List<T> |
DiffList.getMinListForRange(int startIndex,
int endIndex,
INodeDirectory dir) |
Returns the list of minimal list of elements need to combine to generate
cumulative sum from startIndex to endIndex.
|
java.util.List<T> |
DiffListByArrayList.getMinListForRange(int startIndex,
int endIndex,
INodeDirectory dir) |
|
java.util.List<DirectoryWithSnapshotFeature.DirectoryDiff> |
DiffListBySkipList.getMinListForRange(int fromIndex,
int toIndex,
INodeDirectory dir) |
This function returns the minimal set of diffs required to combine in
order to generate all the changes occurred between fromIndex and
toIndex.
|
Snapshot |
DirectorySnapshottableFeature.getSnapshotByName(INodeDirectory snapshotRoot,
java.lang.String snapshotName) |
Find the snapshot matching the given name.
|
boolean |
SnapshotManager.isDescendantOfSnapshotRoot(INodeDirectory dir) |
|
static INode |
SnapshotFSImageFormat.loadCreated(byte[] createdNodeName,
INodeDirectory parent) |
Load a node stored in the created list from fsimage.
|
static void |
SnapshotFSImageFormat.loadDirectoryDiffList(INodeDirectory dir,
java.io.DataInput in,
FSImageFormat.Loader loader) |
Load the
SnapshotDiff list for the INodeDirectoryWithSnapshot
directory. |
static void |
SnapshotFSImageFormat.loadSnapshotList(INodeDirectory snapshottableParent,
int numSnapshots,
java.io.DataInput in,
FSImageFormat.Loader loader) |
Load snapshots and snapshotQuota for a Snapshottable directory.
|
boolean |
DirectoryWithSnapshotFeature.removeChild(INodeDirectory parent,
INode child,
int latestSnapshotId) |
Remove an inode from parent's children list.
|
Snapshot |
DirectorySnapshottableFeature.removeSnapshot(INode.ReclaimContext reclaimContext,
INodeDirectory snapshotRoot,
java.lang.String snapshotName,
long now,
SnapshotManager snapshotManager) |
Remove the snapshot with the given name from
DirectorySnapshottableFeature.snapshotsByNames,
and delete all the corresponding DirectoryDiff. |
INode |
DirectoryWithSnapshotFeature.saveChild2Snapshot(INodeDirectory currentINode,
INode child,
int latestSnapshotId,
INode snapshotCopy) |
Used to record the modification of a symlink node
|
static void |
SnapshotFSImageFormat.saveDirectoryDiffList(INodeDirectory dir,
java.io.DataOutput out,
SnapshotFSImageFormat.ReferenceMap referenceMap) |
|
static void |
SnapshotFSImageFormat.saveSnapshots(INodeDirectory current,
java.io.DataOutput out) |
Save snapshots and snapshot quota for a snapshottable directory.
|
static org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.Bean |
SnapshotManager.toBean(INodeDirectory d) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
DirectoryWithSnapshotFeature.getSnapshotDirectory(java.util.List<INodeDirectory> snapshotDir) |
Get all the directories that are stored in some snapshot but not in the
current children list.
|
void |
SnapshotManager.removeSnapshottable(java.util.List<INodeDirectory> toRemove) |
Remove snapshottable directories from
SnapshotManager.snapshottables |
| Constructor | Description |
|---|---|
DirectoryDiff(int snapshotId,
INodeDirectory dir,
org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff diff) |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Iterable<NamespaceVisitor.Element> |
NamespaceVisitor.getChildren(INodeDirectory dir,
int snapshot) |
|
void |
NamespacePrintVisitor.visitDirectory(INodeDirectory dir,
int snapshot) |
|
default void |
NamespaceVisitor.visitDirectory(INodeDirectory dir,
int snapshot) |
Visiting the given
INodeDirectory (non-recursively). |
default void |
NamespaceVisitor.visitDirectoryRecursively(INodeDirectory dir,
int snapshot) |
First visit the given
INodeDirectory;
then the children;
and then, if snapshottable, the snapshots. |
void |
NamespacePrintVisitor.visitSnapshottable(INodeDirectory dir,
DirectorySnapshottableFeature snapshottable) |
|
default void |
NamespaceVisitor.visitSnapshottable(INodeDirectory dir,
DirectorySnapshottableFeature snapshottable) |
Visiting a
DirectorySnapshottableFeature. |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.