Package | Description |
---|---|
org.apache.hadoop.hdfs.server.namenode | |
org.apache.hadoop.hdfs.server.namenode.snapshot |
Modifier and Type | Class and Description |
---|---|
class |
INodeDirectory
Directory INode class.
|
class |
INodeDirectoryWithQuota
Directory INode class that has a quota restriction
|
class |
INodeFile
I-node for closed file.
|
class |
INodeFileUnderConstruction
I-node for file being written.
|
class |
INodeReference
An anonymous reference to an inode.
|
static class |
INodeReference.DstReference |
static class |
INodeReference.WithCount
An anonymous reference with reference count.
|
static class |
INodeReference.WithName
A reference with a fixed name.
|
class |
INodeSymlink
An
INode representing a symbolic link. |
class |
INodeWithAdditionalFields
INode with additional fields including id, name, permission,
access time and modification time. |
Modifier and Type | Field and Description |
---|---|
INode |
INodeDirectory.SnapshotAndINode.inode |
Modifier and Type | Method and Description |
---|---|
INode |
INodeMap.get(long id)
Get the
INode with the given id from the map. |
INode |
INodeDirectory.getChild(byte[] name,
Snapshot snapshot) |
INode |
INodesInPath.getINode(int i) |
INode |
FSDirectory.getInode(long id)
Get the inode from inodeMap based on its inode id.
|
INode |
FSDirectory.getINode(String src)
Get
INode associated with the file / directory. |
INode |
FSDirectory.getINode4Write(String src)
Get
INode associated with the file / directory. |
INode |
INodesInPath.getLastINode() |
INode |
INodeReference.getReferredINode() |
INode |
FSImageFormat.Loader.loadINodeWithLocalName(boolean isSnapshotINode,
DataInput in,
boolean updateINodeMap) |
INode |
FSImageFormat.Loader.loadINodeWithLocalName(boolean isSnapshotINode,
DataInput in,
boolean updateINodeMap,
StartupProgress.Counter counter) |
INode |
INodeDirectory.saveChild2Snapshot(INode child,
Snapshot latest,
INode snapshotCopy,
INodeMap inodeMap)
Save the child to the latest snapshot.
|
INode |
INode.setAccessTime(long accessTime,
Snapshot latest,
INodeMap inodeMap)
Set last access time of inode.
|
INode |
INode.setModificationTime(long modificationTime,
Snapshot latest,
INodeMap inodeMap)
Set the last modification time of inode.
|
INode |
INodeReference.updateModificationTime(long mtime,
Snapshot latest,
INodeMap inodeMap) |
abstract INode |
INode.updateModificationTime(long mtime,
Snapshot latest,
INodeMap inodeMap)
Update modification time if it is larger than the current value.
|
INode |
INodeWithAdditionalFields.updateModificationTime(long mtime,
Snapshot latest,
INodeMap inodeMap)
Update modification time if it is larger than the current value.
|
Modifier and Type | Method and Description |
---|---|
ReadOnlyList<INode> |
INodeDirectory.getChildrenList(Snapshot snapshot) |
Modifier and Type | Method and Description |
---|---|
boolean |
INodeDirectory.addChild(INode node)
The same as addChild(node, false, null, false)
|
boolean |
INodeDirectory.addChild(INode node,
boolean setModTime,
Snapshot latest,
INodeMap inodeMap)
Add a child inode to the directory.
|
void |
FSDirectory.addToInodeMap(INode inode)
This method is always called with writeLock of FSDirectory held.
|
static void |
INodeId.checkId(long requestId,
INode inode)
To check if the request id is the same as saved id.
|
static boolean |
FSDirectory.isReservedName(INode inode)
Check if a given inode name is reserved
|
void |
FSEditLog.logMkDir(String path,
INode newNode)
Add create directory record to edit log
|
void |
INodeMap.put(INode inode)
|
void |
INodeMap.remove(INode inode)
Remove a
INode from the map. |
protected boolean |
INodeDirectory.removeChild(INode child)
Remove the specified child from this directory.
|
boolean |
INodeDirectory.removeChild(INode child,
Snapshot latest,
INodeMap inodeMap)
Remove the specified child from this directory.
|
void |
INodeDirectory.replaceChild(INode oldChild,
INode newChild,
INodeMap inodeMap)
Replace the given child with a new child.
|
INode |
INodeDirectory.saveChild2Snapshot(INode child,
Snapshot latest,
INode snapshotCopy,
INodeMap inodeMap)
Save the child to the latest snapshot.
|
static void |
FSImageSerialization.saveINode2Image(INode node,
DataOutput out,
boolean writeUnderConstruction,
SnapshotFSImageFormat.ReferenceMap referenceMap)
Save one inode's attributes to the image.
|
void |
INodeReference.setReferredINode(INode referred) |
static int |
INodeReference.tryRemoveReference(INode inode)
Try to remove the given reference and then return the reference count.
|
static INodeDirectory |
INodeDirectory.valueOf(INode inode,
Object path)
Cast INode to INodeDirectory.
|
static INodeFile |
INodeFile.valueOf(INode inode,
String path)
The same as valueOf(inode, path, false).
|
static INodeFileUnderConstruction |
INodeFileUnderConstruction.valueOf(INode inode,
String path)
Cast INode to INodeFileUnderConstruction.
|
static INodeFile |
INodeFile.valueOf(INode inode,
String path,
boolean acceptNull)
Cast INode to INodeFile.
|
Modifier and Type | Method and Description |
---|---|
Quota.Counts |
INodeReference.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
Quota.Counts |
INodeReference.WithName.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
Quota.Counts |
INodeReference.DstReference.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
Quota.Counts |
INodeFile.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
Quota.Counts |
INodeDirectory.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
Quota.Counts |
INodeSymlink.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
abstract Quota.Counts |
INode.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange)
Clean the subtree under this inode and collect the blocks from the descents
for further block deletion/update.
|
Quota.Counts |
INodeDirectory.cleanSubtreeRecursively(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
Map<INode,INode> excludedNodes,
boolean countDiffChange)
Call cleanSubtree(..) recursively down the subtree.
|
Quota.Counts |
INodeDirectory.cleanSubtreeRecursively(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
Map<INode,INode> excludedNodes,
boolean countDiffChange)
Call cleanSubtree(..) recursively down the subtree.
|
Quota.Counts |
INodeDirectory.cleanSubtreeRecursively(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
Map<INode,INode> excludedNodes,
boolean countDiffChange)
Call cleanSubtree(..) recursively down the subtree.
|
void |
INodeReference.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes) |
void |
INodeReference.WithName.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes) |
void |
INodeReference.DstReference.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes)
Destroy self and clear everything! If the INode is a file, this method
collects its blocks for further block deletion.
|
void |
INodeFile.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes) |
void |
INodeDirectory.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes) |
void |
INodeSymlink.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes) |
abstract void |
INode.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes)
Destroy self and clear everything! If the INode is a file, this method
collects its blocks for further block deletion.
|
void |
FSDirectory.removeFromInodeMap(List<? extends INode> inodes)
This method is always called with writeLock of FSDirectory held.
|
Constructor and Description |
---|
INodeDirectory.SnapshotAndINode(Snapshot snapshot,
INode inode) |
INodeReference.WithCount(INodeReference parent,
INode referred) |
INodeReference(INode parent,
INode referred) |
Modifier and Type | Class and Description |
---|---|
class |
INodeDirectorySnapshottable
Directories where taking snapshots is allowed.
|
class |
INodeDirectoryWithSnapshot
The directory with snapshots.
|
class |
INodeFileUnderConstructionWithSnapshot
Represent an
INodeFileUnderConstruction that is snapshotted. |
class |
INodeFileWithSnapshot
Represent an
INodeFile that is snapshotted. |
static class |
Snapshot.Root
The root directory of the snapshot.
|
Modifier and Type | Field and Description |
---|---|
static Comparator<INode> |
INodeDirectorySnapshottable.SnapshotDiffInfo.INODE_COMPARATOR
Compare two inodes based on their full names
|
Modifier and Type | Method and Description |
---|---|
INode |
INodeDirectoryWithSnapshot.getChild(byte[] name,
Snapshot snapshot) |
INode |
Snapshot.Root.getChild(byte[] name,
Snapshot snapshot) |
INode |
INodeDirectoryWithSnapshot.saveChild2Snapshot(INode child,
Snapshot latest,
INode snapshotCopy,
INodeMap inodeMap) |
Modifier and Type | Method and Description |
---|---|
ReadOnlyList<INode> |
INodeDirectoryWithSnapshot.getChildrenList(Snapshot snapshot) |
ReadOnlyList<INode> |
Snapshot.Root.getChildrenList(Snapshot snapshot) |
Modifier and Type | Method and Description |
---|---|
boolean |
INodeDirectoryWithSnapshot.addChild(INode inode,
boolean setModTime,
Snapshot latest,
INodeMap inodeMap) |
static void |
INodeDirectoryWithSnapshot.destroyDstSubtree(INode inode,
Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes)
Destroy a subtree under a DstReference node.
|
static Snapshot |
Snapshot.findLatestSnapshot(INode inode,
Snapshot anchor)
Find the latest snapshot that 1) covers the given inode (which means the
snapshot was either taken on the inode or taken on an ancestor of the
inode), and 2) was taken before the given snapshot (if the given snapshot
is not null).
|
boolean |
INodeDirectoryWithSnapshot.removeChild(INode child,
Snapshot latest,
INodeMap inodeMap) |
void |
INodeDirectoryWithSnapshot.replaceChild(INode oldChild,
INode newChild,
INodeMap inodeMap) |
INode |
INodeDirectoryWithSnapshot.saveChild2Snapshot(INode child,
Snapshot latest,
INode snapshotCopy,
INodeMap inodeMap) |
void |
INodeDirectoryWithSnapshot.undoRename4DstParent(INode deletedChild,
Snapshot latestSnapshot)
Undo the rename operation for the dst tree, i.e., if the rename operation
(with OVERWRITE option) removes a file/dir from the dst tree, add it back
and delete possible record in the deleted list.
|
void |
INodeDirectoryWithSnapshot.undoRename4ScrParent(INodeReference oldChild,
INode newChild,
Snapshot latestSnapshot)
This method is usually called by the undo section of rename.
|
static INodeDirectorySnapshottable |
INodeDirectorySnapshottable.valueOf(INode inode,
String src)
Cast INode to INodeDirectorySnapshottable.
|
Modifier and Type | Method and Description |
---|---|
Quota.Counts |
INodeFileUnderConstructionWithSnapshot.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
Quota.Counts |
INodeDirectoryWithSnapshot.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
Quota.Counts |
INodeFileWithSnapshot.cleanSubtree(Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange) |
void |
SnapshotManager.deleteSnapshot(String path,
String snapshotName,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes)
Delete a snapshot for a snapshottable directory
|
void |
INodeDirectoryWithSnapshot.destroyAndCollectBlocks(INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes) |
static void |
INodeDirectoryWithSnapshot.destroyDstSubtree(INode inode,
Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes)
Destroy a subtree under a DstReference node.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.