Package | Description |
---|---|
org.apache.hadoop.hdfs.server.namenode | |
org.apache.hadoop.hdfs.server.namenode.snapshot |
Modifier and Type | Field and Description |
---|---|
Snapshot |
INodeDirectory.SnapshotAndINode.snapshot |
Modifier and Type | Method and Description |
---|---|
Snapshot |
INodesInPath.getLatestSnapshot()
For non-snapshot paths, return the latest snapshot found in the path.
|
Snapshot |
INodesInPath.getPathSnapshot()
For snapshot paths, return the snapshot specified in the path.
|
Snapshot |
FSImageFormat.Loader.getSnapshot(DataInput in) |
Modifier and Type | Method and Description |
---|---|
boolean |
INodeDirectory.addChild(INode node,
boolean setModTime,
Snapshot latest,
INodeMap inodeMap)
Add a child inode to the directory.
|
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.
|
long |
INodeFile.computeFileSize(Snapshot snapshot)
Compute file size of the current file if the given snapshot is null;
otherwise, get the file size from the given snapshot.
|
long |
INodeFile.diskspaceConsumed(Snapshot lastSnapshot) |
void |
INodeReference.dumpTreeRecursively(PrintWriter out,
StringBuilder prefix,
Snapshot snapshot) |
void |
INodeFile.dumpTreeRecursively(PrintWriter out,
StringBuilder prefix,
Snapshot snapshot) |
void |
INodeDirectory.dumpTreeRecursively(PrintWriter out,
StringBuilder prefix,
Snapshot snapshot) |
void |
INodeSymlink.dumpTreeRecursively(PrintWriter out,
StringBuilder prefix,
Snapshot snapshot) |
void |
INode.dumpTreeRecursively(PrintWriter out,
StringBuilder prefix,
Snapshot snapshot)
Dump tree recursively.
|
long |
INodeReference.getAccessTime(Snapshot snapshot) |
INode |
INodeDirectory.getChild(byte[] name,
Snapshot snapshot) |
ReadOnlyList<INode> |
INodeDirectory.getChildrenList(Snapshot snapshot) |
int |
INodeDirectory.getChildrenNum(Snapshot snapshot) |
short |
INodeFile.getFileReplication(Snapshot snapshot) |
FsPermission |
INodeReference.getFsPermission(Snapshot snapshot) |
String |
INodeReference.getGroupName(Snapshot snapshot) |
long |
INodeReference.getModificationTime(Snapshot snapshot) |
PermissionStatus |
INodeReference.getPermissionStatus(Snapshot snapshot) |
INodeAttributes |
INodeReference.getSnapshotINode(Snapshot snapshot) |
INodeFileAttributes |
INodeFile.getSnapshotINode(Snapshot snapshot) |
INodeAttributes |
INode.getSnapshotINode(Snapshot snapshot) |
String |
INodeReference.getUserName(Snapshot snapshot) |
boolean |
INode.isInLatestSnapshot(Snapshot latest)
Is this inode in the latest snapshot?
|
INodeFile |
INodeFile.recordModification(Snapshot latest,
INodeMap inodeMap) |
INodeDirectory |
INodeDirectory.recordModification(Snapshot latest,
INodeMap inodeMap) |
INodeFileUnderConstruction |
INodeFileUnderConstruction.recordModification(Snapshot latest,
INodeMap inodeMap) |
boolean |
INodeDirectory.removeChild(INode child,
Snapshot latest,
INodeMap inodeMap)
Remove the specified child from this directory.
|
INodeDirectorySnapshottable |
INodeDirectory.replaceSelf4INodeDirectorySnapshottable(Snapshot latest,
INodeMap inodeMap)
Replace itself with an
INodeDirectorySnapshottable . |
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.
|
INodeFile |
INodeFile.setFileReplication(short replication,
Snapshot latest,
INodeMap inodeMap)
Set the replication factor of this file.
|
INode |
INode.setModificationTime(long modificationTime,
Snapshot latest,
INodeMap inodeMap)
Set the last modification time of inode.
|
boolean |
INode.shouldRecordInSrcSnapshot(Snapshot latestInDst)
When
INode.recordModification(org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot, org.apache.hadoop.hdfs.server.namenode.INodeMap) is called on a referred node,
this method tells which snapshot the modification should be
associated with: the snapshot that belongs to the SRC tree of the rename
operation, or the snapshot belonging to the DST tree. |
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.
|
Constructor and Description |
---|
INodeDirectory.SnapshotAndINode(Snapshot snapshot) |
INodeDirectory.SnapshotAndINode(Snapshot snapshot,
INode inode) |
Modifier and Type | Field and Description |
---|---|
static Comparator<Snapshot> |
Snapshot.ID_COMPARATOR
Compare snapshot with IDs, where null indicates the current status thus
is greater than any non-null snapshot.
|
Modifier and Type | Method and Description |
---|---|
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).
|
Snapshot |
INodeDirectoryWithSnapshot.getLastSnapshot() |
Snapshot |
INodeDirectorySnapshottable.getSnapshot(byte[] snapshotName) |
Modifier and Type | Method and Description |
---|---|
ReadOnlyList<Snapshot> |
INodeDirectorySnapshottable.getSnapshotList() |
Map<Integer,Snapshot> |
SnapshotManager.read(DataInput in,
FSImageFormat.Loader loader)
Read values of
SnapshotManager.snapshotCounter , SnapshotManager.numSnapshots , and
all snapshots from the DataInput |
Modifier and Type | Method and Description |
---|---|
boolean |
INodeDirectoryWithSnapshot.addChild(INode inode,
boolean setModTime,
Snapshot latest,
INodeMap inodeMap) |
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) |
static void |
INodeDirectoryWithSnapshot.destroyDstSubtree(INode inode,
Snapshot snapshot,
Snapshot prior,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes)
Destroy a subtree under a DstReference node.
|
void |
INodeDirectorySnapshottable.dumpTreeRecursively(PrintWriter out,
StringBuilder prefix,
Snapshot snapshot) |
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).
|
INode |
INodeDirectoryWithSnapshot.getChild(byte[] name,
Snapshot snapshot) |
INode |
Snapshot.Root.getChild(byte[] name,
Snapshot snapshot) |
ReadOnlyList<INode> |
INodeDirectoryWithSnapshot.getChildrenList(Snapshot snapshot) |
ReadOnlyList<INode> |
Snapshot.Root.getChildrenList(Snapshot snapshot) |
INodeFileAttributes |
INodeFileUnderConstructionWithSnapshot.getSnapshotINode(Snapshot snapshot) |
INodeDirectoryAttributes |
INodeDirectoryWithSnapshot.getSnapshotINode(Snapshot snapshot) |
INodeFileAttributes |
INodeFileWithSnapshot.getSnapshotINode(Snapshot snapshot) |
INodeFileUnderConstructionWithSnapshot |
INodeFileUnderConstructionWithSnapshot.recordModification(Snapshot latest,
INodeMap inodeMap) |
INodeDirectoryWithSnapshot |
INodeDirectoryWithSnapshot.recordModification(Snapshot latest,
INodeMap inodeMap) |
INodeFileWithSnapshot |
INodeFileWithSnapshot.recordModification(Snapshot latest,
INodeMap inodeMap) |
boolean |
INodeDirectoryWithSnapshot.removeChild(INode child,
Snapshot latest,
INodeMap inodeMap) |
INode |
INodeDirectoryWithSnapshot.saveChild2Snapshot(INode child,
Snapshot latest,
INode snapshotCopy,
INodeMap inodeMap) |
INodeDirectoryWithSnapshot |
INodeDirectoryWithSnapshot.saveSelf2Snapshot(Snapshot latest,
INodeDirectory snapshotCopy)
Save the snapshot copy to the latest snapshot.
|
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.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.