| Package | Description |
|---|---|
| org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem. |
| org.apache.hadoop.hdfs.server.blockmanagement | |
| org.apache.hadoop.hdfs.server.namenode | |
| org.apache.hadoop.hdfs.server.namenode.snapshot |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
DFSUtil.checkProtectedDescendants(FSDirectory fsd,
INodesInPath iip) |
Throw if the given directory has any non-empty protected descendants
(including itself).
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
BlockManager.commitOrCompleteLastBlock(BlockCollection bc,
org.apache.hadoop.hdfs.protocol.Block commitBlock,
INodesInPath iip) |
Commit the last block of the file and mark it as complete if it has
meets the minimum redundancy requirement
|
| Modifier and Type | Method | Description |
|---|---|---|
INodesInPath |
FSDirectory.addLastINode(INodesInPath existing,
INode inode,
org.apache.hadoop.fs.permission.FsPermission modes,
boolean checkQuota) |
Add a child to the end of the path specified by INodesInPath.
|
static INodesInPath |
INodesInPath.append(INodesInPath iip,
INode child,
byte[] childName) |
Extend a given INodesInPath with a child INode.
|
INodesInPath |
INodesInPath.getExistingINodes() |
|
INodesInPath |
FSDirectory.getINodesInPath(byte[][] components,
FSDirectory.DirOp dirOp) |
|
INodesInPath |
FSDirectory.getINodesInPath(java.lang.String src,
FSDirectory.DirOp dirOp) |
Resolves the given path into inodes.
|
INodesInPath |
INodesInPath.getParentINodesInPath() |
|
static INodesInPath |
INodesInPath.replace(INodesInPath iip,
int pos,
INode inode) |
Replace an inode of the given INodesInPath in the given position.
|
INodesInPath |
FSDirectory.resolvePath(FSPermissionChecker pc,
java.lang.String src,
FSDirectory.DirOp dirOp) |
Resolves a given path into an INodesInPath.
|
INodesInPath |
FSDirectory.unprotectedResolvePath(java.lang.String src) |
This method should only be used from internal paths and not those provided
directly by a user.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<INodesInPath> |
LeaseManager.getINodeWithLeases(INodeDirectory ancestorDir) |
Get
INodesInPath for all files under the ancestor directory which
has valid lease. |
| Modifier and Type | Method | Description |
|---|---|---|
INodesInPath |
FSDirectory.addLastINode(INodesInPath existing,
INode inode,
org.apache.hadoop.fs.permission.FsPermission modes,
boolean checkQuota) |
Add a child to the end of the path specified by INodesInPath.
|
static INodesInPath |
INodesInPath.append(INodesInPath iip,
INode child,
byte[] childName) |
Extend a given INodesInPath with a child INode.
|
boolean |
FSDirectory.isNonEmptyDirectory(INodesInPath inodesInPath) |
|
long |
FSDirectory.removeLastINode(INodesInPath iip) |
Remove the last inode in the path from the namespace.
|
static INodesInPath |
INodesInPath.replace(INodesInPath iip,
int pos,
INode inode) |
Replace an inode of the given INodesInPath in the given position.
|
static INode |
FSDirXAttrOp.unprotectedSetXAttrs(FSDirectory fsd,
INodesInPath iip,
java.util.List<org.apache.hadoop.fs.XAttr> xAttrs,
java.util.EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) |
|
void |
FSDirectory.updateCount(INodesInPath iip,
INode.QuotaDelta quotaDelta,
boolean check) |
|
void |
FSDirectory.updateSpaceForCompleteBlock(BlockInfo completeBlk,
INodesInPath inodes) |
Update the cached quota space for a block that is being completed.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
SnapshotManager.assertMarkedAsDeleted(INodesInPath iip,
java.lang.String snapshotName) |
|
INodeDirectory |
SnapshotManager.checkAndGetSnapshottableAncestorDir(INodesInPath iip) |
Get the snapshot root directory for the given directory.
|
java.lang.String |
SnapshotManager.createSnapshot(LeaseManager leaseManager,
INodesInPath iip,
java.lang.String snapshotRoot,
java.lang.String snapshotName,
long mtime) |
Create a snapshot of the given path.
|
void |
SnapshotManager.deleteSnapshot(INodesInPath iip,
java.lang.String snapshotName,
INode.ReclaimContext reclaimContext,
long now) |
Delete a snapshot for a snapshottable directory
|
org.apache.hadoop.hdfs.protocol.SnapshotDiffReport |
SnapshotManager.diff(INodesInPath iip,
java.lang.String snapshotPath,
java.lang.String from,
java.lang.String to) |
Compute the difference between two snapshots of a directory, or between a
snapshot of the directory and its current tree.
|
org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing |
SnapshotManager.diff(INodesInPath iip,
java.lang.String snapshotPath,
java.lang.String from,
java.lang.String to,
byte[] startPath,
int index,
int snapshotDiffReportLimit) |
Compute the partial difference between two snapshots of a directory,
or between a snapshot of the directory and its current tree.
|
org.apache.hadoop.hdfs.protocol.SnapshotStatus[] |
SnapshotManager.getSnapshotListing(INodesInPath iip) |
List all the snapshots under a snapshottable 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.
|
void |
SnapshotManager.renameSnapshot(INodesInPath iip,
java.lang.String snapshotRoot,
java.lang.String oldSnapshotName,
java.lang.String newSnapshotName,
long now) |
Rename the given snapshot
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.