public static class Snapshot.Root extends INodeDirectory
INodeDirectory.SnapshotAndINode
INode.BlocksMapUpdateInfo, INode.Feature, INode.QuotaDelta, INode.ReclaimContext
INodeDirectoryAttributes.CopyWithQuota, INodeDirectoryAttributes.SnapshotCopy
DEFAULT_FILES_PER_DIRECTORY
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext |
computeContentSummary(int snapshotId,
org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext summary)
Count subtree content summary with a
ContentCounts . |
org.apache.hadoop.hdfs.server.namenode.INode |
getChild(byte[] name,
int snapshotId) |
org.apache.hadoop.hdfs.util.ReadOnlyList<org.apache.hadoop.hdfs.server.namenode.INode> |
getChildrenList(int snapshotId) |
String |
getFullPathName() |
String |
getRootFullPathName()
Get the full path name of the root directory of this snapshot.
|
addChild, addChild, addSnapshot, addSnapshotFeature, addSnapshottableFeature, addSpaceConsumed, asDirectory, cleanSubtree, cleanSubtreeRecursively, clear, clearChildren, computeDirectoryContentSummary, computeQuotaUsage, computeQuotaUsage4CurrentDirectory, destroyAndCollectBlocks, dumpTreeRecursively, dumpTreeRecursively, getChildrenNum, getDiffs, getDirectorySnapshottableFeature, getDirectoryWithQuotaFeature, getDirectoryWithSnapshotFeature, getLocalStoragePolicyID, getQuotaCounts, getSnapshot, getSnapshotINode, getStoragePolicyID, isDirectory, isSnapshottable, isWithSnapshot, metadataEquals, recordModification, removeChild, removeChild, removeSnapshot, removeSnapshottableFeature, renameSnapshot, replaceChild, saveChild2Snapshot, searchChild, setSnapshotQuota, toDetailString, undoRename4DstParent, undoRename4ScrParent, valueOf
addAclFeature, addFeature, addXAttrFeature, getAclFeature, getFeature, getFeatures, getFsPermissionShort, getId, getLocalNameBytes, getNext, getPermissionLong, removeAclFeature, removeFeature, removeXAttrFeature, setAccessTime, setLocalName, setModificationTime, setNext, updateModificationTime
asFile, asReference, asSymlink, compareTo, computeAndConvertContentSummary, computeContentSummary, computeQuotaUsage, computeQuotaUsage, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getAclFeature, getFsPermission, getGroupName, getKey, getLocalName, getModificationTime, getObjectString, getParent, getParentReference, getParentString, getPathComponents, getPathComponents, getPathNames, getStoragePolicyIDForQuota, getUserName, getXAttrFeature, hashCode, isAncestorDirectory, isFile, isInLatestSnapshot, isQuotaSet, isReference, isSymlink, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toString
public org.apache.hadoop.hdfs.util.ReadOnlyList<org.apache.hadoop.hdfs.server.namenode.INode> getChildrenList(int snapshotId)
getChildrenList
in class INodeDirectory
snapshotId
- if it is not Snapshot.CURRENT_STATE_ID
, get the result
from the corresponding snapshot; otherwise, get the result from
the current directory.public org.apache.hadoop.hdfs.server.namenode.INode getChild(byte[] name, int snapshotId)
getChild
in class INodeDirectory
name
- the name of the childsnapshotId
- if it is not Snapshot.CURRENT_STATE_ID
, get the result
from the corresponding snapshot; otherwise, get the result from
the current directory.public org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext computeContentSummary(int snapshotId, org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext summary)
org.apache.hadoop.hdfs.server.namenode.INode
ContentCounts
.computeContentSummary
in class INodeDirectory
snapshotId
- Specify the time range for the calculation. If this
parameter equals to Snapshot.CURRENT_STATE_ID
,
the result covers both the current states and all the
snapshots. Otherwise the result only covers all the
files/directories contained in the specific snapshot.summary
- the context object holding counts for the subtree.public String getFullPathName()
getFullPathName
in class org.apache.hadoop.hdfs.server.namenode.INode
public String getRootFullPathName()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.