| 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 |
|---|---|---|
INodeFile |
INode.asFile() |
Cast this inode to an
INodeFile. |
INodeFile |
INodeFile.asFile() |
|
INodeFile |
INodeReference.asFile() |
|
INodeFile |
FSNamesystem.getBlockCollection(long id) |
|
INodeFile |
INodeFile.loadSnapshotFeature(FileDiffList diffs) |
Used by FSImage.
|
INodeFile |
INodeFile.setFileReplication(short replication,
int latestSnapshotId) |
Set the replication factor of this file.
|
static INodeFile |
INodeFile.valueOf(INode inode,
java.lang.String path) |
The same as valueOf(inode, path, false).
|
static INodeFile |
INodeFile.valueOf(INode inode,
java.lang.String path,
boolean acceptNull) |
Cast INode to INodeFile.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.hdfs.server.namenode.LeaseManager.Lease |
LeaseManager.getLease(INodeFile src) |
|
void |
FSEditLog.logAddBlock(java.lang.String path,
INodeFile file) |
|
void |
FSEditLog.logAppendFile(java.lang.String path,
INodeFile file,
boolean newBlock,
boolean toLogRpcIds) |
|
void |
FSEditLog.logCloseFile(java.lang.String path,
INodeFile newNode) |
Add close lease record to edit log.
|
void |
FSEditLog.logOpenFile(java.lang.String path,
INodeFile newNode,
boolean overwrite,
boolean toLogRpcIds) |
Add open lease record to edit log.
|
void |
FSEditLog.logUpdateBlocks(java.lang.String path,
INodeFile file,
boolean toLogRpcIds) |
|
void |
FSImageFormat.Loader.updateBlocksMap(INodeFile file) |
|
static void |
FSImageFormatPBINode.Loader.updateBlocksMap(INodeFile file,
BlockManager bm) |
|
static void |
FSImageSerialization.writeINodeFile(INodeFile file,
java.io.DataOutput out,
boolean writeUnderConstruction) |
Serialize a
INodeFile node |
| Constructor | Description |
|---|---|
INodeFile(INodeFile that) |
|
SnapshotCopy(INodeFile file) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
FileWithSnapshotFeature.cleanFile(INode.ReclaimContext reclaimContext,
INodeFile file,
int snapshotId,
int priorSnapshotId,
byte storagePolicyId) |
|
void |
FileWithSnapshotFeature.collectBlocksAndClear(INode.ReclaimContext reclaimContext,
INodeFile file) |
If some blocks at the end of the block list no longer belongs to
any inode, collect them and update the block list.
|
static void |
SnapshotFSImageFormat.saveFileDiffList(INodeFile file,
java.io.DataOutput out) |
|
void |
FileDiffList.saveSelf2Snapshot(int latestSnapshotId,
INodeFile iNodeFile,
INodeFileAttributes snapshotCopy,
boolean withBlocks) |
|
void |
FileWithSnapshotFeature.updateQuotaAndCollectBlocks(INode.ReclaimContext reclaimContext,
INodeFile file,
FileDiff removed) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
NamespacePrintVisitor.visitFile(INodeFile file,
int snapshot) |
|
default void |
NamespaceVisitor.visitFile(INodeFile file,
int snapshot) |
Visiting the given
INodeFile. |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.